Cypress · Middle · Question 70 of 77

What does cy.document() yield?

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.

Further reading

Problem with a question

Cypress · Middle · question 70

Test yourself

Take the Cypress · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz