Skip to content

browser.scroll.get#

Functions#

position() #

Get scroll position of the X and Y axis.

Returns:

Type Description
tuple[int, int]

Scroll position of the X and Y axis. In pixels.

Example
x, y = browser.scroll.get.position()

total_height() #

Get total scroll height.

Returns:

Type Description
int

Total scroll height.

Example
viewport_height = browser.scroll.get.total_height()