MarketSquare/webdrivermanager

Error downloading Chromedriver above 114 version

elearning-x opened this issue ยท 12 comments

Hello,

Since today, my scripts encounter the following error:
ValueError: There is no such driver by url https://chromedriver.storage.googleapis.com/LATEST_RELEASE_115.0.5790

After some research Google has changed since version 115 of Chrome the url of the file containing the download urls (cf https://sites.google.com/chromium.org/driver/downloads).

Could you please update to take account of this change?

Thanks

Same problem here.

Same here:

$ webdrivermanager chrome
Downloading WebDriver for browser: "chrome"
Error, unable to get version number for release 116.0.5845, got code: 404
Failed to parse compatible version: Error, unable to get version number for release 116.0.5845, got code: 404
Error, unable to get version number for release 116.0.5845, got code: 404
Failed to parse compatible version: Error, unable to get version number for release 116.0.5845, got code: 404
Error, unable to get version number for release 116.0.5845, got code: 404
Failed to parse compatible version: Error, unable to get version number for release 116.0.5845, got code: 404

Looks like the download location has changed? Hopefully these links will help ๐Ÿคž

Dave.

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()

Credit

Same problem here. My team utilizes the Robot Framework for testing and for that it needs chromedriver installed.

Webdrivermanager log output:

_Error, unable to get version number for release 116.0.5845, got code: 404
Failed to parse compatible version: Error, unable to get version number for release 116.0.5845, got code: 404
Error, unable to get version number for release 116.0.5845, got code: 404
Failed to parse compatible version: Error, unable to get version number for release 116.0.5845, got code: 404
Error, unable to get version number for release 116.0.5845, got code: 404
Failed to parse compatible version: Error, unable to get version number for release 116.0.5845, got code: 404
Downloading WebDriver for browser: "chrome"
Driver binary downloaded to: "C:\Users*
*\AppData\Local\rasjani\WebDriverManager\chrome\114.0.5735.90\chromedriver_win32\chromedriver.exe"
Driver copied to: G:\agent\externals\git\cmd\chromedriver.exe_

Here's the Robot Framework log output:

Setup failed:
SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 93
Current browser version is 116.0.5845.140 with binary path C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
------------------------------------------------------------------------------

Wolfe1 commented

My company has been using a custom version of this (I think back in the day they wanted Beta versions). Anyway after seeing this break I made a fix here: https://github.com/Accruent/webdrivermanager/pull/8/files

Not saying this will work for all situations but for latest chrome this did the job. Perhaps the code may help someone build a full fledged solution here using the new download location.

As the chrome stopped releasing web-driver for chrome version above 114 we have to use chrome for test Chromedriver from here https://googlechromelabs.github.io/chrome-for-testing/
by installing the binaries specifically and update that in our system it does have json endpoint for each version from where we can rewrite the chrome.py file so that it install from those endpoints https://github.com/GoogleChromeLabs/chrome-for-testing#json-api-endpoints

Hey everyone, any updates of this issue?

The solution suggested by @lich0821 worked for me, I was able to implement that with robot framework

I want to raise the question on whether or not this tool is still required now with the functionality built into selenium releases. Before I go into explaining that I would like to get a rough feel from those here, your understanding and knowledge of selenium-manager.

I ask that you copy this task list I have here and I want to use it as rough poll. I understand we can do this is in Discussions but that seems just as painful as using tasks so I will simply ask for a reply here, please, if you will.

Have you heard of "selenium-manager" or "Selenium Manager"?

  • Yes I have
  • No I have not

Where did you here about it?

  • Just now from you
  • From @lich0821's comment above
  • In an announcement on Selenium's project homepage - https://www.selenium.dev/
  • Elsewhere
    If elsewhere could you please list where that was

Do you know the differences between webdrivermanager and selenium-manger?

  • No I an thinking they are the same thing
  • Yes, but had to look it up now
  • Yes I knew the differences

What have you read about selenium-manager?

My apologies if these questions feel like I am being judgmental. That is not my intention. What I am trying to do is gauge how wide spread the information about selenium-manger has reached.

I do have one more question which I find important for looking forward, that I will go ahead an ask now

How do you currently use webdrivermanger? (check all that apply)

  • We use it as a command line interface(CLI) tool
  • We use it as a Python class and call its methods
  • Unsure

I think this tool is way better to use with robot framework , as i can integrate the cli if driver error comes up instead of writing a complete python file for the same specially for robot framework. It's fine I wrote the custom keyword for this

@Antimatterr If you are using robot framework with the latest version of SeleniumLibrary, you don't need that python code workaround, SeleniumLibrary to use Selenium Manager and automatically download the driver for you.

I think this tool is way better to use with robot framework

@Antimatterr curious if you have tried out Selenium Manager and if so are you saying that you feel this tool is better than Selenium Manager? If so i would like to hear what is lacking or problematic for you with Selenium Manager. I do know the selenium team is actively wanting to support selenium manager and improve upon it.