Created
August 31, 2022 16:37
-
-
Save voratham/7b5f2e34674fa2693831c99b92f2c1dc to your computer and use it in GitHub Desktop.
selenim-chrome-driver-profile
This file contains hidden or 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
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