Scroll Steps

Page and element scroll: top, bottom, into view. Surfacing the right element before assertion or interaction.

Step phrasings in this group

The book sidebar lists each individual step page under this group.

And I scroll down

Scrolls the page down by a custom number of pixels (default 350).

And I scroll up

Scrolls the page up by a custom number of pixels (default 350).

When I scroll to top

Scrolls to the very top of the current page.

When I scroll to the bottom

Scrolls to the bottom of the current page.

When I scroll to top of "#off-canvas"

Scrolls to the top of a specific element identified by a CSS selector.

When I scroll to bottom of "#off-canvas"

Scrolls to the bottom of a specific element identified by a CSS selector.

And I scroll right

Scrolls the page right by a custom number of pixels (default 350).

And I scroll left

Scrolls the page left by a custom number of pixels (default 350).

When I scroll to start

Scrolls to the start (horizontal origin) of the page.

When I scroll to the end

Scrolls to the end (horizontal maximum) of the page.

When I scroll to start of "#off-canvas"

Scrolls to the start of a specific element identified by a CSS selector.

When I scroll to end of "#off-canvas"

Scrolls to the end of a specific element identified by a CSS selector.

Back to all step groups