Cypress - Selecting Elements
What is the expected behavior of this Cypress command?
cy.contains('Cancel').click()cy.contains('Cancel').click()This finds the first DOM element containing the text 'Cancel'.
Clicks the found element.
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions