Last active
October 13, 2020 05:54
-
-
Save john92paul/7dbce9315c1180791dae557041432bd7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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