Cypress · Middle · Question 70 of 77
What does cy.document() yield?
- 1The test's source code as text
- 2The
documentobject of the app - 3A PDF of the current page
Show the answer
Correct answer: The document object of the app
Explanation
It's useful for checking things like document.title or the lang attribute.