-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Protractor 7.0.0 only supports chrome verison 85, while chrome version is 85 (error) #5460
Comments
This sounds like an issue with the chromedriver version you have. I think you might have gotten chromedriver version 85 which is why you are getting this error. In other words, the chromedriver and Chrome versions do not match. Most likely the chromedriver is version 85 and chrome is version 84. Easily solution is either upgrade chrome to version 85 or downgrade the chromedriver to version 84. Currently version 85 is still in beta so I'd recommend downgrading to version 84. |
is there away to configure protractor to not download the latest version of chrome driver? I tried removing 85 and it just re downloads it the next time i try to run protractor. The only thing i have found so far suggests i have to track down what version of protractor is only compatible up to version 84 and reinstall protractor to that version. |
@herrld the best way is to add version arguments to the webdriver-manager update and start commands. Updating and starting your webdriver with these commands will force the version to always be 84: |
OK so no way to set it in configuration. I will try and see if can force those commands with the tools that we are using. Thank you. not sure if its feasible but if possible would like to make that a feature request to be able to control target version through protractor configuration |
In what way are you launching your selenium server? |
through angular cli as an e2e setup using cucumberJS |
Running |
thank you very much. Was running down the rabbit hole of forcing specific version vs just skipping the update. |
I assume what webdriver-manager does is it pulls the latest version from here or a similar platform "https://chromedriver.storage.googleapis.com/". According to this the latest version is 85 even though it's still in beta. Seems like somebody has jumped the gun and updated the latest version before it has been released. |
There is discussion in webdriver-manager issue 376 related to this: angular/webdriver-manager#376. |
@sergiybuch try launching webdriver-manager with this command and it should work fine! |
Appreciate that! it works - you saved my day! |
While there is a work around for now, is there a fix been worked on? |
How are you supposed to hard code the chrome version in CI environment? |
Oh I see, so the VM installed chrome version needs to match, in our case adding |
Please correct me if I am wrong.. this is still a work around to the issue.. When I run |
This is indeed a workaround until chromedriver v85 comes out. Then this issue will be fixed by itself. The issue comes up because for some reason v85 was labeled as current and latest (https://chromedriver.storage.googleapis.com/). Once v85 comes out officially it will for real become the latest version, thus the issue will disappear. Edit: v85 has indeed come out of beta, so currently it is the latest version. Did not check before writing the comment. |
In reviewing a stackoverflow question about this, I found that we can continue to keep parity by just getting the version during our build pipelines. It's a bit of a pain but at least it should always be in parity due to it being dynamic at figuring out the versions.
Here is the stack overflow response if curious |
I'm the one who asked the question @meroware refers to, and with his help I was able to update the GitHub CI Workflow as follows to fix things:
It's a shame I have to do this, because I would expect with angular, protractor, and webdriver-manager, that they'd
Or perhaps there is some feature flag that would help out? |
I am getting this error : as you suggested above: the best way is to add version arguments to the webdriver-manager update and start commands. Updating and starting your webdriver with these commands will force the version to always be 84: Where do i add the above code? in conf.js or where do i add it? Please explain in detail. |
In jenkins:
how do you do a can someone please help? |
I apologize for the accidental link. |
Good day,
as of 07.24 after some updates to chrome we are getting the the following error
The text was updated successfully, but these errors were encountered: