[Python] How to stop selenium to download chromedriver everytime

Discussão em 'Python' iniciado por Stack, Junho 9, 2025.

  1. Stack

    Stack Membro Participativo

    I'm always using the following code to initiate my selenium web driver. But the problem is, it always tries to download the latest chrome driver. How can I prevent this behavior and just let it update if there is any update on the real chrome browser?

    options = Options()
    options.add_argument("--start-maximized")
    driver = webdriver.Chrome(service=Service(ChromeDriverManager(cache_valid_range=0).install()), options=options)


    UPDATE: I think my first problem was that cache_valid_range is set to zero and because of that it always tries to download it again.

    Continue reading...

Compartilhe esta Página