Skip to main content
Scrolls the viewport (or the container described by in) left by pixels pixels. Without pixels, scrolls one viewport. The simplified scalar form is the pixel count.

Parameters

ParameterTypeRequiredDescription
pixelsnumberNoPixels to scroll. Defaults to a full viewport when omitted.
instringNoDescription of the scroll container. Defaults to the page when omitted.
cssstringNoCSS selector for the target. Use instead of the description key.
coordsstring | { x, y }NoAbsolute viewport coordinates. Either an x, y string (e.g. 120, 40) or a { x, y } object.
xnumber | stringNoX coordinate. Must be provided together with y.
ynumber | stringNoY coordinate. Must be provided together with x.
forcebooleanNoForce the action even when the element is not actionable.
iframestringNoURL or URL pattern of the iframe that contains the target element.
saveAsstringNoName of the variable to write this step’s return value to.
retriesnumberNoNumber of times to retry the step on failure before failing the test.
skippedbooleanNoSkip this step at execution time.

Shorthand

Pixels as a non-negative number.
- scrollLeft: 500

Examples

- scrollLeft: 300
- scrollLeft:
    pixels: 500
    in: the horizontal timeline