Scrolls the current page downward by a given number of pixels using window.scrollBy(0, n). When no pixel value is provided the step uses a default of 350 px. Use this step to simulate a user scrolling through content incrementally - for example to reveal lazy-loaded items, trigger sticky-header state changes, or bring an element into the viewport before interacting with it.
The pixel argument must be a whole positive integer. Fractional values are not accepted. The scroll is relative to the current position, so calling this step twice adds up: two I scroll down 200 steps move the page 400 px in total. To reset position afterwards use I scroll to top.
Accepted phrasings
When I scroll down
When I scroll down 800
When we scroll down 500
When scrolling down 1200
And I scroll down
And we scroll down 300
Examples
And I scroll down
When I scroll down 800
And we scroll down 500
When scrolling down 1200
In a real scenario
Scenario: The header gains the scrolled state when the page is scrolled
Given I am an anonymous user
When I go to the homepage
And wait
And I scroll down 600
Then the "site header" should have the "scrolled" class within 5 seconds