Saves a full-page screenshot as an action step: the browser captures the entire scrollable height of the page rather than only the visible viewport. Two files are written to the screenshot directory (default ./screenshots, configurable with WEBSHIP_SCREENSHOT_DIR or the screenshot.dir world parameter): a PNG image and a matching .html snapshot of the current page source. Filenames follow the configured pattern, defaulting to a timestamp plus the feature file name and step line.
Reach for this variant while a scenario is still in progress, for example right after navigating to a long page or after triggering lazy-loaded content. If the whole suite should capture full-page images by default, set WEBSHIP_SCREENSHOT_FULLSCREEN=true instead of adding this step everywhere.
Accepted phrasings
When I save fullscreen screenshot
When we save fullscreen screenshot
When save fullscreen screenshot
Then I save fullscreen screenshot
And I save fullscreen screenshot
Examples
When I save fullscreen screenshot
When we save fullscreen screenshot
When save fullscreen screenshot
And I save fullscreen screenshot
In a real scenario
Scenario: Capture a long article before and after scrolling
Given I am on "/long-article"
When I wait 2 seconds
And I save fullscreen screenshot
And I scroll down 600
Then the "site header" should have the "scrolled" class within 5 seconds