Debomita Bhattacharjee has Published 863 Articles

Handling Web Tables with Cypress

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 05-Aug-2020 12:13:33

2K+ Views

Web tables can be handled with Cypress. A web table can be of two types − static and dynamic. A static web table has a fixed number of rows and columns. A dynamic web table on the other hand has rows and columns whose numbers do not remain fixed.In order ... Read More

Handling Child Tabs with Cypress

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 05-Aug-2020 12:11:16

1K+ Views

Sometimes on clicking a link or button, it opens to another tab in the same browser. Cypress has a unique way of handling child tabs unlike other automation tools like Selenium and Protractor. It basically keeps no information on the child tab by shifting its focus from the parent to ... Read More

Handling Alerts with Cypress

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 05-Aug-2020 12:09:41

2K+ Views

Cypress has a unique way of working with alerts unlike other automation tools like Selenium or Protractor. Cypress basically automatically accepts alerts and we don’t have to write logic to handle them.There are two types of pop up, the alert pop up (with only OK button) and confirmation pop up ... Read More

Dynamic Dropdown verification with Cypress

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 05-Aug-2020 12:06:43

2K+ Views

There are numerous types of dropdowns on the webpage. The types of dropdowns are static and dynamic. While the static dropdowns have with the tag, the dynamic dropdowns generally have the or tags.The static dropdowns having the tag is handled in Cypress with the help of ... Read More

Static Dropdown verification with Cypress

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 05-Aug-2020 12:05:11

2K+ Views

Cypress handles static dropdowns with the help of its in built commands. For a static dropdown, the tagname of the element should be and its child elements should have the tagname .The command used is select(). This command needs to be chained with a command that gives DOM elements ... Read More

Checkbox verification with Cypress

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 05-Aug-2020 12:03:45

10K+ Views

Cypress handles checking and unchecking of checkbox with the help of its in built functions. For a checkbox, the tagname of the element should be input and the type attribute in the html code should be checkbox.The command used is check(). This command needs to be chained with a command ... Read More

Difference between JQuery vs Cypress

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 05-Aug-2020 12:02:23

286 Views

Cypress can work on JQuery objects and call its methods. Thus Cypress can act upon both Cypress and non- Cypress commands. Cypress is asynchronous in nature. It is handled by resolving promises for every Cypress command. This whole process is taken care of by Cypress internally and wrapped and hidden ... Read More

Asynchronous Nature in Cypress

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 05-Aug-2020 12:00:30

405 Views

Cypress is built on node.js server and it works with Javascript programming language. Anything which is dependent on node.js is asynchronous in nature and so Cypress commands work in that mode.When we have a group of test steps in a test case, all the steps start executing in parallel without ... Read More

Text Validations in Cypress

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 05-Aug-2020 11:57:45

7K+ Views

Cypress can validate the text on an element with the help of jQuery text() method. This method shall help us to fetch the text content on the selected element. We can also put assertions on the text content of the element.cy.get('.product').should('have.text', 'Tutorialspoint');We can do validations on the text like verify ... Read More

Get and Find commands in Cypress

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 05-Aug-2020 11:56:20

2K+ Views

Cypress has the get() and find() methods to find elements based on locators on the page. The objective achieved by these two methods are almost identical. The get() method fetches one or a list of web elements with the help of the css locators specified as a parameter to that ... Read More

Advertisements