Skip to main content
POST
Browser scroll

Authorizations

Authorization
string
header
required

An API key from the dashboard, such as sk_live_…. It acts in its workspace.

Path Parameters

sandbox_id
string
required

The sandbox, sbx_….

Body

application/json
dx
number<double> | null

CSS pixels to scroll right; negative scrolls left.

dy
number<double> | null

CSS pixels to scroll down; negative scrolls up.

ref
integer<uint64> | null

An element to scroll into view, by its ref in the page's latest snapshot. With dx or dy, the mouse wheel then turns over it, which scrolls what it's in; otherwise over the middle of the viewport.

Required range: x >= 0

Response

OK

title
string
required

The page's title.

url
string
required

The page's URL.

snapshot
string | null

The page's accessibility tree as an indented outline, one element a line: - role "name" [ref=N]. A ref names the element to click, type into or scroll to.