Skip to content

browser.scroll.check_if#

Functions#

is_end_of_page() #

Check if current scroll position is at the end of the page.

Returns:

Type Description
bool

True if current scroll position is at the end of the page, False otherwise.

Example
if browser.scroll.check_if.is_end_of_page():
    browser.open.url("https://example.com")

is_top_of_page() #

Check if current scroll position is at the top of the page.

Returns:

Type Description
bool

True if current scroll position is at the top of the page, False otherwise.

Example
if browser.scroll.check_if.is_top_of_page():
    browser.click.button("//xpath/to/button")