Soorena Soorena - 18 days ago 8
Python Question

How to open chrome webdriver with python selenium package , signed into default user?

I want to use chrome webdriver as a logged in chrome user, it normally starts as a plain chrome instance without any cookies and not logged in to google.
a similar question in the context of java could be found here.

Answer

in python:

chrome_options = Options()
    chrome_options.add_argument("user-data-dir=/location/to/chrome/profile")
    driver = webdriver.Chrome(chrome_options=chrome_options,executable_path='/location/to/chromedriver')
Comments