Recall & Review
beginner
What is a full-page screenshot in Cypress?
A full-page screenshot captures the entire webpage from top to bottom, not just the visible part on the screen.
Click to reveal answer
beginner
How do you take a full-page screenshot in Cypress?
Use the command
cy.screenshot({ capture: 'fullPage' }) to capture the entire page.Click to reveal answer
beginner
Why are full-page screenshots useful in testing?
They help verify the entire page layout and content, catching issues that might be missed in just the visible area.
Click to reveal answer
beginner
What is the default behavior of
cy.screenshot() without options?It captures only the visible part of the webpage, not the full page.
Click to reveal answer
intermediate
Can full-page screenshots in Cypress capture content that requires scrolling?
Yes, full-page screenshots automatically scroll and stitch the entire page into one image.
Click to reveal answer
Which Cypress command option captures a full-page screenshot?
✗ Incorrect
The correct option is { capture: 'fullPage' } to capture the entire page.
What part of the page does
cy.screenshot() capture by default?✗ Incorrect
By default, cy.screenshot() captures only the visible viewport.
Why might you prefer a full-page screenshot over a viewport screenshot?
✗ Incorrect
Full-page screenshots help verify the entire page layout and content.
Does Cypress automatically scroll the page when taking a full-page screenshot?
✗ Incorrect
Cypress automatically scrolls and stitches the full page into one screenshot.
Which of these is NOT a valid reason to use full-page screenshots in testing?
✗ Incorrect
Full-page screenshots capture the entire page, not just visible elements.
Explain how to take a full-page screenshot in Cypress and why it is useful.
Think about the difference between viewport and full page capture.
You got /3 concepts.
Describe the difference between default screenshots and full-page screenshots in Cypress.
Consider what part of the page each method captures.
You got /3 concepts.