Then I save fullscreen screenshot

Saves a full-page screenshot: the browser captures the entire scrollable height of the page, not just the part visible in the viewport. As with all screenshot steps, two files are written to the screenshot directory (default ./screenshots): a PNG image and a matching .html snapshot of the page source. Filenames follow the configured pattern, defaulting to a timestamp plus the feature file name and step line.

Use this step when you need to review content below the fold, such as long articles, listing pages, or footers. If you want every screenshot in the suite to be full-page without editing scenarios, set WEBSHIP_SCREENSHOT_FULLSCREEN=true or the screenshot.alwaysFullscreen world parameter, and use the plain save screenshot step.

Accepted phrasings

Then I save fullscreen screenshot
Then we save fullscreen screenshot
Then save fullscreen screenshot
When I save fullscreen screenshot
And I save fullscreen screenshot

Examples

Then I save fullscreen screenshot
When I save fullscreen screenshot
Then save fullscreen screenshot
And we save fullscreen screenshot

In a real scenario

Scenario: Capture the whole homepage including the footer
  Given I am an anonymous user
   When I go to the homepage
    And wait
   Then I see visible site header
    And I see visible main content
    And I see visible footer
    And I save fullscreen screenshot

Related steps

Back to Screenshot Steps