1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[Python] How do i open websites on my default chrome profile using Selenium? Chrome options...

Discussão em 'Python' iniciado por Stack, Setembro 13, 2024.

  1. Stack

    Stack Membro Participativo

    options = webdriver.ChromeOptions()
    options.add_argument(r"--user-data-dir=C:\Users\user1\AppData\Local\Google\Chrome\User Data")
    driver = webdriver.Chrome(options=options)
    time.sleep(15)
    driver.get("https://youtube.com")


    I tried the above code, and it does open the chrome with my default profile. But it does not put in the link. I have also tried using chrome_options=options, but chrome_options has gotten deprecated.

    I expected chrome to open youtube in my default profile, but after opening the browser, nothing happens.

    Continue reading...

Compartilhe esta Página