Skip to content

Instantly share code, notes, and snippets.

@john92paul
Last active October 13, 2020 05:54
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 john92paul/7dbce9315c1180791dae557041432bd7 to your computer and use it in GitHub Desktop.
Save john92paul/7dbce9315c1180791dae557041432bd7 to your computer and use it in GitHub Desktop.
from selenium import webdriver # import packages
driver_path = "C:/Users/johndoe/chromedriver.exe" # Defines the chrome driver path
driver = webdriver.Chrome(driver_path) # Define the driver
driver.get("https://www.google.com/") # Open url
driver.save_screenshot("screenshot.png") # Save Screenshot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment