Skip to content

Instantly share code, notes, and snippets.

@Chalarangelo
Created October 28, 2017 18:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Chalarangelo/6f05ffc8171a505ec55a35e413002bed to your computer and use it in GitHub Desktop.
Save Chalarangelo/6f05ffc8171a505ec55a35e413002bed to your computer and use it in GitHub Desktop.
import time
from selenium import webdriver
url = "https://unsplash.com"
driver = webdriver.Firefox(executable_path=r'geckodriver.exe')
driver.get(url)
# Scroll page and wait 5 seconds
driver.execute_script("window.scrollTo(0,1000);")
time.sleep(5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment