← Back to library
Cypressvisualintermediatev10+
Full-page screenshot
Capture the entire page as a PNG for documentation or manual visual review.
1it('captures full-page screenshot of dashboard', () => {
2 cy.visit('/dashboard');
3
4 // Wait for async data before capturing
5 cy.get('table tbody tr').should('have.length.greaterThan', 0);
6
7 cy.screenshot('dashboard-full', {
8 capture: 'fullPage', // 'viewport' | 'fullPage' | 'runner'
9 });
10 // Saved to: cypress/screenshots/dashboard-full.png
11});#screenshot#full page#cy.screenshot#capture