Git Product home page Git Product logo

cypress-automation's Introduction

Demo Cypress automation Udemy course

  • Navigating to url - visit
  • Through command line, Cypress runs in headless in electron
  • Update configurations in cypress.json which over rides existing behaviour.
  • Cypress supports Css selectors only
  • We can see what happened on every step with screenshot and error messages in cypress
  • how to handle click, type, text()
  • Iterating over the aray of web elements using each
  • Cypress is asynchronus in nature and there is no guarantee in sequence of execution, but cypress takes care of it
  • Promise comes with rejection, resolved,pending
  • .then()
  • Non cypress commands cannot resolve promise by themselves. We need to manually resolve it by then ()
  • Aliasing to reuse locators
  • Cypress auto accepts alerts and pop ups
  • Cypress have capability of browser events. window:alert is the event which get fired on alert open
  • So you are firing the event through cypress to get access to that alert
  • Cypress have ability to manipulate the DOM-
  • Yes you can traverse to sibling with next() and it works only on get
  • Mouse hover events are not supported in cypres. Alternatively use jquery or force click

cypress-automation's People

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.