Cypress · Junior · Question 25 of 75
What are Cypress commands, in terms of timing?
- 1Run immediately when the line is executed
- 2Run in parallel as soon as they are called
- 3Enqueued and run later, one after another
Show the answer
Correct answer: Enqueued and run later, one after another
Explanation
Calling cy.get() adds it to a queue. Cypress then runs the queue in order, which is why you can't use the return value directly.