Cypress · Junior · Question 42 of 75

What does cy.screenshot() do?

Show the answer

Correct answer: Saves a screenshot of the page or element

Explanation

Cypress also saves screenshots automatically on failures in cypress run. Visual comparison needs a plugin.

Further reading

Problem with a question

Cypress · Junior · question 42

Test yourself

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

Take this quiz