Scroll
Scroll
Section titled “Scroll”Type: page-scroll · Package: Browser v1.0.0
Moves (scrolls) the page or an element. It has two uses: bring an element into view (by passing its selector) or shifting a number of pixels (with x/y). Useful on long pages, progressive loading listings (infinite scroll) or to make sure an element is visible before interacting.
How it works
Section titled “How it works”- If you enter
selector, scroll until that element is visible. - If not, it scrolls the page by the number of pixels indicated in
x(horizontal) andy(vertical). Positive values go down/to the right; negative, the opposite.
Required parameters
Section titled “Required parameters”Ninguno.
Optional parameters
Section titled “Optional parameters”| Parameter | Editor | Description |
|---|---|---|
page | session | The page session. Omit it inside a body; outside, pass = page. |
selector | selector | Item to carry in sight. Empty = scrolls the entire page. |
x | number | Pixels to move horizontally. By default 0. |
y | number | Pixels to move vertically. Ex: 500 (low), -500 (up). |
Example
Section titled “Example”Download to load more results (infinite scroll):
For Loop from = 1 to = 6 indexVariable = i └─ activities: Page Scroll y = 1000 Delay milliseconds = 800 // dar tiempo a que carguen más itemsBring a button to the visible area before clicking:
Page Scroll selector = (#botonPagar)Page Click selector = (#botonPagar)Related activities
Section titled “Related activities”- Wait For — wait for loaded items to appear when scrolling.
- Extract Table — for paginated tables (handles scrolling for you).