scroll
Scroll within the browser viewport. Note that x
and y
coordinates are relative to the current
scroll positon, therefore browser.scroll(0, 0)
is a non operation.
Usage
browser.scroll(x, y)
Parameters
Name | Type | Details |
---|---|---|
x optional | number | horizontal scroll position (default: 0 ) |
y optional | number | vertical scroll position (default: 0 ) |