Cypress · Middle · Question 1 of 77
In Cypress 12+, what is the difference between queries and action commands?
- 1Queries are synchronous; actions return real Promises
- 2Queries run in Node; actions run inside the browser page
- 3Queries like
getare retried; actions likeclickrun once
Show the answer
Correct answer: Queries like get are retried; actions like click run once
Explanation
Queries re-run until assertions pass. Actions such as .click() or .type() aren't retried, though they wait for actionability first.