You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description of the problem:
Webdriver does not find the chromedriver for the ubuntu snaps package.
The ubuntu snaps package for chromium (default starting with Ubuntu 19.10) requires a patched version of the webdriver. That version is / can be installed with chrome locally. The previous work around of forcing a chrome version does not work, since it will download the unpatched chromedriver.
The command to start chromium is:
chromium --version
If the version ends with snap, the driver to use is:
/snap/bin/chromium.chromedriver
It is important to use that binary and to not download it from anywhere else, since the snap sandboxing mechanism won't work when just downloading that binary.
Selenium currently has issues with this as well, so even if the auto-detection would work, the tests won't start. See SeleniumHQ/selenium#7788
2019-11-14 17:34:49,722 [Test worker ] DEBUG io.github.bonigarcia.wdm.Shell – There was a problem executing command <google-chrome --version> on the shell: Cannot run program "google-chrome" (in directory "."): error=2, Datei oder Verzeichnis nicht gefunden
2019-11-14 17:34:49,722 [Test worker ] DEBUG o.github.bonigarcia.wdm.WebDriverManager – The proper chromedriver version for your Google Chrome is unknown ... trying with the latest
2019-11-14 17:34:50,130 [Test worker ] DEBUG o.github.bonigarcia.wdm.WebDriverManager – Latest version of chromedriver according to https://chromedriver.storage.googleapis.com/LATEST_RELEASE is 78.0.3904.70
2019-11-14 17:34:50,144 [Test worker ] INFO o.github.bonigarcia.wdm.WebDriverManager – Reading https://chromedriver.storage.googleapis.com/ to seek chromedriver
2019-11-14 17:34:50,916 [Test worker ] INFO io.github.bonigarcia.wdm.Downloader – Downloading https://chromedriver.storage.googleapis.com/78.0.3904.70/chromedriver_linux64.zip
2019-11-14 17:34:51,110 [Test worker ] INFO io.github.bonigarcia.wdm.Downloader – Extracting binary from compressed file chromedriver_linux64.zip
2019-11-14 17:34:51,237 [Test worker ] INFO o.github.bonigarcia.wdm.WebDriverManager – Exporting webdriver.chrome.driver as /home/mzangl/.m2/repository/webdriver/chromedriver/linux64/78.0.3904.70/chromedriver
Workaround
if (newFile("/snap/bin/chromium.chromedriver").exists()) {
System.setProperty("webdriver.chrome.driver", "/snap/bin/chromium.chromedriver");
} else {
WebDriverManager.chromedriver().avoidAutoVersion().version(CHROME_VERSION).setup();
}
The text was updated successfully, but these errors were encountered:
Description of the problem:
Webdriver does not find the chromedriver for the ubuntu snaps package.
The ubuntu snaps package for chromium (default starting with Ubuntu 19.10) requires a patched version of the webdriver. That version is / can be installed with chrome locally. The previous work around of forcing a chrome version does not work, since it will download the unpatched chromedriver.
The command to start chromium is:
If the version ends with
snap
, the driver to use is:It is important to use that binary and to not download it from anywhere else, since the snap sandboxing mechanism won't work when just downloading that binary.
Selenium currently has issues with this as well, so even if the auto-detection would work, the tests won't start. See SeleniumHQ/selenium#7788
Browser and version: Chromium 78.0.3904.97 snap
Operating system: Ubuntu 19.10
WebDriverManager version: 3.6.2
WebDriverManager use:
WebDriverManager traces:
Workaround
The text was updated successfully, but these errors were encountered: