Cypress · Junior · Question 42 of 75
What does cy.screenshot() do?
- 1Saves a screenshot of the page or element
- 2Compares the page with a saved image
- 3Records a video of the current test
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.