browser_scroll
Scroll a page or specified scrollable pane vertically or horizontally to a pixel distance or target offset, then wait for movement to stop so you can resume from a known position.
Instructions
Scroll. Give deltaY (how far; positive is down, as scrollTop counts) or toY (where to end up; 0 is the top, 999999 the bottom), not both; deltaX / toX are the horizontal ones. What scrolls is whatever is under the pointer: to scroll a pane that scrolls on its own (a mail list, a results panel), give its emsn; emsn -1 scrolls the whole page, only when the snapshot's page position line offers it. Replies once the scroll is at rest, saying when it moved less than asked (at the end, or the page took the wheel); coordinates are void after a scroll, so take a fresh snapshot to see where you are.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | With y, a viewport point to scroll at instead of an emsn; with an emsn, a spot inside it. | |
| y | No | See x. | |
| toX | No | Horizontal offset to end up at. | |
| toY | No | Vertical offset to end up at; past the end is the end. | |
| emsn | No | The scrollable element to scroll, from the snapshot; -1 for the page. | |
| speed | No | Percent of human hand speed, default 100. Changes duration, not distance. | |
| tabId | No | Tab to act on. Defaults to the foreground tab of that window. | |
| deltaX | No | Horizontal pixels; positive scrolls right. | |
| deltaY | No | Vertical pixels; positive scrolls down. | |
| windowId | No | Window to act on. Defaults to the frontmost window. | |
| timeoutMs | No | How long it may take to come to rest or arrive; default 7000, more with repeatCount. | |
| snapshotId | No | Required with emsn or x,y; see browser_click. | |
| repeatCount | No | Repeat a deltaY/deltaX scroll this many times. | |
| repeatDelayMs | No | Pause between repeats, default 300. |