Search code examples
pythonpython-3.xgoogle-chromeselenium-webdriverselenium-chromedriver

There is no such driver by URL https://chromedriver.storage.googleapis.com/LATEST_RELEASE_115.0.5790 error with Python webdrivermanager & Chrome 115.0


I recently updated my Google Chrome browser to version 115.0.5790.99 and I'm using Python webdrivermanager library (version 3.8.6) for Chrome driver management.

However, since this update, when I call the ChromeDriverManager().install() function, I encounter the following error:

There is no such driver by URL https://chromedriver.storage.googleapis.com/LATEST_RELEASE_115.0.5790

Steps to reproduce the issue:

  • Update Google Chrome to version 115.0.5790.99.

Execute the following Python code:

from webdriver_manager.chrome import ChromeDriverManager

driver_path = ChromeDriverManager().install()

capture:

exception catched


Solution

  • Selenium Manager

    With the availability of Selenium v4.6 and above you don't need to explicitly download ChromeDriver, GeckoDriver or any browser drivers as such using webdriver_manager. You just need to ensure that the desired browser client i.e. , or is installed.

    Selenium Manager is the new tool integrated with that would help to get a working environment to run Selenium out of the box. Beta 1 of Selenium Manager will configure the browser drivers for Chrome, Firefox, and Edge if they are not present on the PATH.


    Solution

    As a solution you can simply do:

    from selenium import webdriver
    from selenium.webdriver.chrome.options import Options
    
    options = Options()
    options.add_argument("start-maximized")
    driver = webdriver.Chrome(options=options)
    driver.get("https://www.google.com/")