Overview
TheSCROLL step allows you to scroll the page or within a specific element. It supports multiple scroll directions, different scroll amounts, and both instant and smooth scrolling behaviors.
Parameters
Container element selector to scroll within. If not provided, scrolls the entire page.
Scroll direction. Options:
down- Scroll downwardup- Scroll upwardleft- Scroll leftright- Scroll righttop- Scroll to topbottom- Scroll to bottom
How to calculate scroll amount:
pixels- Scroll by specific pixel amountviewport- Scroll by viewport percentageend- Scroll to the end in the specified direction
Amount to scroll (only used when scrollBy is “pixels”)
Scroll behavior:
instant- Jump immediately to positionsmooth- Animate scroll smoothly
Time to wait after scrolling (in milliseconds)
Behavior
- Element Location: If targetDescription is provided, finds the scrollable container
- Scroll Calculation: Calculates scroll distance based on direction and scrollBy mode
- Scroll Action: Performs the scroll with specified behavior
- Wait: Waits for the specified duration after scrolling
Common Use Cases
- Loading lazy-loaded content
- Navigating through long pages
- Testing infinite scroll implementations
- Accessing content below the fold
- Scrolling within modal dialogs or containers
- Testing horizontal scrolling galleries
Error Handling
The step will fail if:- The specified container element cannot be found
- The element or page is not scrollable in the specified direction
- The scroll action cannot be performed

