MarketSquare / webdrivermanager

Python module to facilitate downloading and deploying WebDriver binaries for Chrome, Firefox, Opera & Edge
https://pypi.org/project/webdrivermanager/
MIT License
100 stars 38 forks source link

Error downloading Chromedriver above 114 version #99

Open elearning-x opened 11 months ago

elearning-x commented 11 months ago

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

lich0821 commented 11 months ago

Same problem here.

damies13 commented 10 months ago

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 :crossed_fingers:

Dave.

lich0821 commented 10 months ago

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

vinicius-solon-silva commented 10 months ago

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\chromedriverwin32\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 9 months ago

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.

Antimatterr commented 7 months ago

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

vinicius-solon-silva commented 7 months ago

Hey everyone, any updates of this issue?

damies13 commented 7 months ago

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

emanlove commented 5 months ago

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"?

Where did you here about it?

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

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)

Antimatterr commented 2 months ago

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

damies13 commented 2 months ago

@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.

emanlove commented 2 months ago

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.