scroll
Move the page to top/bottom, by pixel amount, or bring a matching element into view; repeat to bottom for lazy-loading content.
Instructions
Scroll the page. Give exactly one of to, by_y or selector.
to='top'/to='bottom': jump to that end of the document.by_y: scroll by that many pixels, positive down and negative up (at most 20000 either way per call), with the mouse wheel.selector: bring the first matching element into view.
Pages that load more as you reach the end (feeds, lazy lists) grow
after a scroll, so call scroll(to='bottom') again until the reply
says at_bottom. The reply is scroll_y, scroll_height and
at_bottom once the position has settled. A scroll that moved
nothing says so: the content may sit in an inner scrolling panel, which
selector on an element inside it reaches.
selector fails fast like click (not_found, hidden,
disabled, timeout, page_closed).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ||
| by_y | No | ||
| reason | No | ||
| confirm | No | ||
| selector | No | ||
| timeout_ms | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||