[Python] Python and Selenium: open a tab with pre-installed extentions?

Discussão em 'Python' iniciado por Stack, Janeiro 27, 2025.

  1. Stack

    Stack Membro Participativo

    I need to have my selenium code run in a tab with my pre-installed extension, but when I use selenium it opens up some sort of private/devmode tab which does not have my pre-installed extensions. How can I have it open in a normal regular tab which has my pre-downloaded and pre-installed extentions?

    Here is my code:

    from selenium import webdriver

    driver = webdriver.Chrome()
    driver.get('http://website.com')

    email_input = driver.find_element_by_css_selector('input#email')
    email_input.send_keys('mail@gmail.com')

    password_input = driver.find_element_by_css_selector('input#password')
    password_input.send_keys('Password')

    Continue reading...

Compartilhe esta Página