Skip to content

browser.scroll.page#

Functions#

down(pages=1, delay_seconds=1) #

If possible, scroll number of pages down.

Parameters:

Name Type Description Default
pages int

Number of pages to scroll down. Must be an integer of 1 or greater.

1
delay_seconds float

Option to add custom delay in seconds to ensure the view is updated after scroll.

1
Example

Scroll single page down:

browser.scroll.page.down()

Scroll multiple pages down:

browser.scroll.page.down(3)

to_end(delay_seconds=1) #

If possible, scroll to end of page.

Parameters:

Name Type Description Default
delay_seconds float

Option to add custom delay in seconds to ensure the view is updated after scroll.

1
Example
browser.scroll.page.to_end()

to_top(delay_seconds=1) #

If possible, scroll to top of page.

Parameters:

Name Type Description Default
delay_seconds float

Option to add custom delay in seconds to ensure the view is updated after scroll.

1
Example
browser.scroll.page.to_top()

up(pages=1, delay_seconds=1) #

If possible, scroll number of pages up.

Parameters:

Name Type Description Default
pages int

Number of pages to scroll up. Must be an integer of 1 or greater.

1
delay_seconds float

Option to add custom delay in seconds to ensure the view is updated after scroll.

1
Example

Scroll single page up:

browser.scroll.page.up()

Scroll multiple pages up:

browser.scroll.page.up(3)