-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Description
What happened?
In the WebRTC samples repository we test a lot against unstable Chrome versions. Sometimes this leads to an incompability between the chromedriver version and the chromeversion unless both match (or are close enough).
Currently this fails in Chrome 120+ when run in github workflows here (relevant bits of the log below, PR here) because the chromedriver version (117) preinstalled by the github image is found in /usr/bin/chromedriver has an interop issue with Chrome 120.
On machines which don't have chromedriver in such a widely known path this just works by downloading a matching chromedriver 🎉
Deleting /usr/bin/ from the path is a bit hard. I have not yet tried adding a workflow step to remove the chromedriver (or symlink) which might require elevated privileges.
selenium-manager which I presume handles this behind the scenes does offer options to force a browser download but nothing for the driver download (or that would allow excluding a directory from the search path)
@bonigarcia any ideas how to fix that?
How can we reproduce the issue?
https://github.com/webrtc/samplesRelevant log output
Selenium Manager binary found at /home/runner/work/samples/samples/node_modules/selenium-webdriver/bin/linux/selenium-manager
at getBinary (node_modules/selenium-webdriver/common/seleniumManager.js:56:13)
console.warn
The chromedriver version (117.0.5938.92) detected in PATH at /usr/bin/chromedriver might not be compatible with the detected chrome version (120.0.6062.2); currently, chromedriver 120.0.6070.0 is recommended for chrome 120.*, so it is advised to delete the driver in PATH and retryOperating System
Ubuntu 20 (22) on github actions
Selenium version
Javascript 5.x
What are the browser(s) and version(s) where you see this issue?
Chrome 120
What are the browser driver(s) and version(s) where you see this issue?
Chromedriver 117
Are you using Selenium Grid?
No response