Scrolls the page all the way back to its horizontal start: the far left edge of the document. The step takes no parameters. It resets the horizontal scroll position to zero while keeping the current vertical position unchanged, so you do not lose your place on a long page when you jump back to the left edge.
Use this after horizontal navigation with scroll-right steps when a later assertion needs content that sits at the left edge, such as row labels of a wide table. Note the difference from scrolling to the top: to top is vertical, to start is horizontal. For scrollable containers rather than the page itself, use the selector-scoped variant.
Accepted phrasings
When I scroll to start
When I scroll to the start
When I scroll to the start of the page
When we scroll to start
When we scroll to the start
When scrolling to the start of the page
The step also works with And as a continuation keyword inside a When block.
Examples
When I scroll to start
And we scroll to the start
When scrolling to the start of the page
In a real scenario
Scenario: Row labels stay reachable after browsing a wide report
Given I am a logged in user with the "webmaster" user
When I go to "/reports/annual-overview"
And wait
And I scroll right 1500
And I wait 2s
Then I should see "Q4 totals"
When I scroll to the start of the page
And I wait 2s
Then the element ".report-row-labels" should be displayed