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
total_scroll_height = browser.scroll.get.total_height()
total_width()
#
Get total scroll width.
Returns:
Type | Description |
---|---|
int | Total scroll width. |
Example
total_scroll_width = browser.scroll.get.total_width()