Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 778
Christian Rubio Avatar asked Nov 20 '25 03:11

Christian Rubio


2 Answers

Selenium Manager is now fully included with Selenium 4.10.0, so this is all you need:

from selenium import webdriver
from selenium.webdriver.chrome.service import Service

service = Service()
options = webdriver.ChromeOptions()
driver = webdriver.Chrome(service=service, options=options)
# ...
driver.quit()

If the driver isn't found on your system PATH, Selenium Manager will automatically download it.


If you're wondering why you're now seeing this error for ChromeDriverManager, it's because https://chromedriver.chromium.org/downloads only goes up to version 114 due to driver restructuring by the Chromium Team for the new Chrome-for-Testing.

like image 102
Michael Mintz Avatar answered Nov 22 '25 19:11

Michael Mintz


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. google-chrome, firefox or microsoft-edge is installed.

Selenium Manager is the new tool integrated with selenium4 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/")
like image 41
undetected Selenium Avatar answered Nov 22 '25 17:11

undetected Selenium