Scrolls the page all the way to its horizontal end: the far right edge of the document. The step takes no parameters. It moves the horizontal scroll position to the full scrollable width of the page while keeping the current vertical position unchanged, so it is the quickest way to reach content pinned to the right edge without guessing pixel amounts.
This is the horizontal counterpart of scrolling to the bottom: to bottom is vertical, to the end is horizontal. It only moves the page-level scrollbar; if the overflowing content is inside its own scroll container, use the selector-scoped end step instead.
Accepted phrasings
When I scroll to end
When I scroll to the end
When I scroll to the end of the page
When we scroll to end
When we scroll to the end
When scrolling to the end of the page
The step also works with And as a continuation keyword inside a When block.
Examples
When I scroll to the end
And we scroll to end
When scrolling to the end of the page
In a real scenario
Scenario: The last column of the comparison matrix is visible at the page end
Given I am an anonymous user
When I go to "/pricing/compare"
And wait
Then I should see "Starter"
When I scroll to the end of the page
And I wait 2s
Then I should see "Enterprise"
When I scroll to the start of the page
Then I should see "Starter"