Skip to content

Instantly share code, notes, and snippets.

@voratham
Created August 31, 2022 16:37
Show Gist options
  • Save voratham/7b5f2e34674fa2693831c99b92f2c1dc to your computer and use it in GitHub Desktop.
Save voratham/7b5f2e34674fa2693831c99b92f2c1dc to your computer and use it in GitHub Desktop.
selenim-chrome-driver-profile
import os
from selenium import webdriver
path = os.getcwd()
options = webdriver.ChromeOptions()
options.add_argument("user-data-dir=/Users/voratham/Library/Application Support/Google/Chrome/Profile 1")
driver = webdriver.Chrome(path+"/chromedriver",options=options)
driver.get("https://python.org")
print(driver.title)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment