Cypress · Junior · Question 9 of 75
What does cy.get('[data-cy=submit]') do?
- 1Finds elements by selector, retrying until they appear
- 2Returns the element immediately or fails at once
- 3Reads the value of a cookie named
submit
Show the answer
Correct answer: Finds elements by selector, retrying until they appear
Explanation
cy.get queries the DOM and retries until the element exists or the timeout (4 s by default) runs out.