titusfortner / webdrivers

Keep your Selenium WebDrivers updated automatically
MIT License
593 stars 111 forks source link

Webdrivers::VersionError: Unable to find latest point release version for 85.0.4182 #180

Closed breathe closed 3 years ago

breathe commented 4 years ago

Summary

Getting this error in CI when I try to update chromium:

       Webdrivers::VersionError: Unable to find latest point release version for 85.0.4182. You appear to be using a non-production version of Chrome. Please set `Webdrivers::Chromedriver.required_version = <desired driver version>` to a known chromedriver version: https://chromedriver.storage.googleapis.com/index.html

The chromium version installed in my environment is determined by the puppeteer npm module (our app image has some codepaths that automate chromium via selenium from ruby and other codepaths that automate chromium by puppeteer -- puppeteer is tightly coupled to chromium version so we let it decide the version of chromium -- and then use webdrivers to install the compatible selenium drivers needed to support the ruby codepaths ...)

Debug Info

Please provide the following information for bug reports:

    webdrivers (4.4.1)
~ $ ruby --version
ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux-gnu]
heroku stack-18

Expected Behavior

Chromedriver with correct version would be installed

Actual Behavior

Failure about that the needed version doesn't exist

titusfortner commented 4 years ago

Technically there is no "correct" version of chromedriver for a non production version of chrome. Webdrivers follows the recommendations specified by Google: https://chromedriver.chromium.org/downloads/version-selection

My default is to stick with Google recommendations and for users to specify what they want if they are doing something special. You should be able to programmatically get the version of chromium installed by the npm and determine what version of chromedriver is close enough for you.

kapoorlakshya commented 3 years ago

Hi @breathe, do you have what you need from us to resolve this issue? If yes, then I would like to close this issue. Thank you!

kapoorlakshya commented 3 years ago

Closing due to lack of response.

@breathe Please feel free to open a new issue or comment here if you need further assistance.

marckohlbrugge commented 3 years ago

I'm running into a similar issue after removing Chrome, and installing Chromium instead. I'd expect it to work out of the box as it did when using Chrome.

I tried explicitly setting the required_version to "89.0.4354.0"but that leads to a 404 when trying to download the file.

Would it be possible to include step-by-step instructions in the Readme for getting webdrivers to work with Chromium?

kapoorlakshya commented 3 years ago

@marckohlbrugge Would you mind creating a new issue? The 404 sounds like a new problem, and will need environment info, especially the OS, to reproduce the Chromium issue. Thanks!

kapoorlakshya commented 3 years ago

And feel free to link this issue in the new one for context.

kapoorlakshya commented 3 years ago

I am looking into the 404 error and turns out v89 is not listed on the downloads index - https://chromedriver.storage.googleapis.com/index.html

You'll have to specify a required version indexed on that page.

marckohlbrugge commented 3 years ago

I am looking into the 404 error and turns out v89 is not listed on the downloads index - https://chromedriver.storage.googleapis.com/index.html

You'll have to specify a required version indexed on that page.

I see. I'm beginning to understand how webdrivers, chromedriver, chrome, and chromium all play together. I've created issue #188 to address this. It would be nice if using webdrivers with Chromium was as easy as it is with Chrome.