[Python] How do I make Selenium to launch Chrome with default profile?

Discussão em 'Python' iniciado por Stack, Maio 2, 2025.

  1. Stack

    Stack Membro Participativo

    I'm trying to get Selenium to launch Chrome with my default profile but fail. for some reason, the window will launch itself with no profile logged in:

    from selenium import webdriver

    options = webdriver.ChromeOptions()

    options.add_argument("user-data-dir=C:/Users/Me/AppData/Local/Google/Chrome/User Data/Default")

    driver = webdriver.Chrome(options=options)

    driver.get('https://google.com/')

    Continue reading...

Compartilhe esta Página