Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Selenium WebDriver Chrome 115 stopped working

I have Chrome 115.0.5790.99 installed on Windows, and I use Selenium 4.10.0. In my Python code, I call service = Service(ChromeDriverManager().install()) and it returns the error:

ValueError: There is no such driver by url [sic] https://chromedriver.storage.googleapis.com/LATEST_RELEASE_115.0.5790.

I use ChromeDriverManager().install() in order to ensure the use of last stable version of webdriver. How to solve the issue?

My simple code:

from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from webdriver_manager.chrome import ChromeDriverManager
import time

# Install Webdriver
service = Service(ChromeDriverManager().install())

# Create Driver Instance
driver = webdriver.Chrome(service=service)

# Get Web Page
driver.get('https://www.crawler-test.com')
time.sleep(5)
driver.quit()

Error output:

Traceback (most recent call last):
  File "C:\Users\Administrator\Documents\...\test.py", line 7, in <module>
    service = Service(ChromeDriverManager().install())
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\webdriver_manager\chrome.py", line 39, in install
    driver_path = self._get_driver_path(self.driver)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\webdriver_manager\core\manager.py", line 30, in _get_driver_path
    file = self._download_manager.download_file(driver.get_driver_download_url())
                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\webdriver_manager\drivers\chrome.py", line 40, in get_driver_download_url
    driver_version_to_download = self.get_driver_version_to_download()
                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\webdriver_manager\core\driver.py", line 51, in get_driver_version_to_download
    self._driver_to_download_version = self._version if self._version not in (None, "latest") else self.get_latest_release_version()
                                                                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\webdriver_manager\drivers\chrome.py", line 62, in get_latest_release_version
    resp = self._http_client.get(url=latest_release_url)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\webdriver_manager\core\http.py", line 37, in get
    self.validate_response(resp)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\webdriver_manager\core\http.py", line 16, in validate_response
    raise ValueError(f"There is no such driver by url {resp.url}")
ValueError: There is no such driver by url https://chromedriver.storage.googleapis.com/LATEST_RELEASE_115.0.5790

I tried the following but no success:

  • to disable Chrome auto-update, but Chrome manages to update itself anyway (https://www.minitool.com/news/disable-automatic-chrome-updates.html and https://www.webnots.com/7-ways-to-disable-automatic-chrome-update-in-windows-and-mac);
  • to install Chrome 114 and webdriver for version 114, than it works till Chrome get updated automatically;
  • to follow instructions https://chromedriver.chromium.org/downloads/version-selection but when generating URL and running link https://chromedriver.storage.googleapis.com/LATEST_RELEASE_115.0.5790 I get error No such object: chromedriver/LATEST_RELEASE_115.0.5790

How can I solve the issue till webdriver for Chrome 115 will be finally released at the download location?

like image 811
TaKo Avatar asked Sep 05 '25 17:09

TaKo


2 Answers

Selenium Manager is now fully included with selenium 4.10.0 (and newer), 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 developer.chrome.com/docs/chromedriver/downloads only goes up to version 114 due to driver restructuring by the Chromium Team for the new Chrome-for-Testing.

like image 189
Michael Mintz Avatar answered Sep 07 '25 05:09

Michael Mintz


This worked for me:

 service = Service(ChromeDriverManager(version="114.0.5735.90").install())
like image 42
BRUNO ALVES Avatar answered Sep 07 '25 05:09

BRUNO ALVES