Do you want selenium browser to scroll to the end of the page? You can do that with code, javascript code to be precise.

After you load a webpage, chances are you want to scroll down.You can scroll down a specific amount or all the way to the bottom.

Related course:

selenium scroll down

example

The selenium scroll down code is shown below. It cals the method execute_script() with the javascript to scroll to the end of the web page.

1
2
3
4
5
6
7
8
9
10
#_*_coding: utf-8_*_
from selenium import webdriver
import time

browser=webdriver.Firefox()
browser.get("https://en.wikipedia.org")
browser.execute_script("window.scrollTo(0,document.body.scrollHeight)")
time.sleep(3)
browser.close()

selenium scroll down

Download examples