selenium: [πŸ› Bug]: ValueError: There is no such driver by url https://chromedriver.storage.googleapis.com/LATEST_RELEASE_115.0.5790

What happened?

System: webdriver_manager == 4.0.0 (latest) Chrome driver == 115.0.5790.110 (latest) Windows 11 & 10 Description: webdriver_manager can’t automatically pull the latest chrome driver and it raises this error

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

How can we reproduce the issue?

chrome_options = Options()
            chrome_options.add_argument('--log-level=3')
            chrome_options.add_experimental_option("debuggerAddress", "127.0.0.1:9222")
            driver = webdriver.Chrome(ChromeDriverManager().install(),options=chrome_options,)
            driver.get("https://www.youtube.com/")

Relevant log output

File "c:\Users\malak\Desktop\Projects\Python\YoutubeController\src\YouTubeController\youtubecontroller.py", line 53, in __setup
  driver = webdriver.Chrome(ChromeDriverManager().install(),options=chrome_options,)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\malak\AppData\Local\Programs\Python\Python311\Lib\site-packages\webdriver_manager\chrome.py", line 32, in install
  driver_path = self._get_driver_path(self.driver)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\malak\AppData\Local\Programs\Python\Python311\Lib\site-packages\webdriver_manager\manager.py", line 23, in _get_driver_path
  driver_version = driver.get_version()
                   ^^^^^^^^^^^^^^^^^^^^
File "C:\Users\malak\AppData\Local\Programs\Python\Python311\Lib\site-packages\webdriver_manager\driver.py", line 40, in get_version
  return self.get_latest_release_version()
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\malak\AppData\Local\Programs\Python\Python311\Lib\site-packages\webdriver_manager\driver.py", line 74, in get_latest_release_version
  validate_response(resp)
File "C:\Users\malak\AppData\Local\Programs\Python\Python311\Lib\site-packages\webdriver_manager\utils.py", line 80, in validate_response
  raise ValueError("There is no such driver by url {}".format(resp.url))
ValueError: There is no such driver by url https://chromedriver.storage.googleapis.com/LATEST_RELEASE_115.0.5790

Operating System

Mac OS

Selenium version

python 4.10.0

What are the browser(s) and version(s) where you see this issue?

Chrome

What are the browser driver(s) and version(s) where you see this issue?

Chrome driver 115

Are you using Selenium Grid?

No

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 1
  • Comments: 35 (9 by maintainers)

Most upvoted comments

4.11 is out now. Give it a try.

Yeah, the cool thing about selenium is that it can:

  1. locate the browser and/or download it
  2. locate the driver and/or download it
  3. Tell the options class to tell that driver the location of that browser

None of the other driver managers can do the 3rd thing, which is going to make everything much easier going forward.

The root cause is ChromeDriver 115 expecting a Chrome for Testing binary. You can go around that by setting the browser binary location yourself. Google folks expect to fix that in ChromeDriver 115 soon.

In Selenium 4.11 we are doing that for you, we are setting the browser binary path so you can continue using it usually. This feature relies on Selenium Manager, so you do not need any other driver manager tool. If you have more questions, I will leave some links above.

@FattyMango