Linux64 - not found in http://npm.taobao.org/mirrors/chromedriver
Running on Windows works fine, running on Linux I get a response saying chromedriver for LINUX64 could not be found.
Chromium 77.0.3865.120
Alpine Linux 64bit
WebDriverManger 3.8.0
Issue occurs right at the start.
public WebDriver startDriver(String path, WebDriver driver) {
WebDriverManager.chromiumdriver().targetPath(path).setup();
ChromeOptions options = new ChromeOptions();
driver = new ChromeDriver(options);
return driver;
}
Also attempted with setting the version of chromiumdriver to use by hand.
WebDriverManager.chromiumdriver().targetPath(path).version("77.0").setup();
Traces:
com.XXX.beforeSuite FAILED
io.github.bonigarcia.wdm.WebDriverManagerException: io.github.bonigarcia.wdm.WebDriverManagerException: chromedriver
[...HTML code of mirror website response...]
for LINUX64 not found in http://npm.taobao.org/mirrors/chromedriver
This issue seems to have the same problem, just on MAC.
https://github.com/bonigarcia/webdrivermanager/issues/422
Please attach the traces of WebDriverManager, better at DEBUG level.
I tried using Chromium on windows and have the same issue there as well.
for WIN64 not found in http://npm.taobao.org/mirrors/chromedriver
at io.github.bonigarcia.wdm.WebDriverManager.handleException(WebDriverManager.java:774)
at io.github.bonigarcia.wdm.WebDriverManager.manage(WebDriverManager.java:548)
at io.github.bonigarcia.wdm.WebDriverManager.handleException(WebDriverManager.java:771)
at io.github.bonigarcia.wdm.WebDriverManager.manage(WebDriverManager.java:548)
at io.github.bonigarcia.wdm.WebDriverManager.handleException(WebDriverManager.java:764)
at io.github.bonigarcia.wdm.WebDriverManager.manage(WebDriverManager.java:548)
at io.github.bonigarcia.wdm.WebDriverManager.setup(WebDriverManager.java:258)
at com.chatvisor.cvta.testutils.CVTABrowser$3.startDriver(CVTABrowser.java:35)
at com.chatvisor.cvta.tests.TestBase.beforeSuite(TestBase.java:38)
at com.chatvisor.cvta.tests.TestBaseWithLogin.beforeSuite(TestBaseWithLogin.java:20)
at com.XXX.beforeSuite(TestBaseWithLoginAndDummypage.java:19)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:134)
at org.testng.internal.MethodInvocationHelper.invokeMethodConsideringTimeout(MethodInvocationHelper.java:63)
at org.testng.internal.ConfigInvoker.invokeConfigurationMethod(ConfigInvoker.java:348)
at org.testng.internal.ConfigInvoker.invokeConfigurations(ConfigInvoker.java:302)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:327)
at org.testng.SuiteRunner.run(SuiteRunner.java:286)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1187)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1109)
at org.testng.TestNG.runSuites(TestNG.java:1039)
at org.testng.TestNG.run(TestNG.java:1007)
at com.intellij.rt.testng.IDEARemoteTestNG.run(IDEARemoteTestNG.java:66)
at com.intellij.rt.testng.RemoteTestNGStarter.main(RemoteTestNGStarter.java:110)
Caused by: io.github.bonigarcia.wdm.WebDriverManagerException: chromedriver
Mirror index of
../
</div>
<hr/>
<div class="bottom">
Copyright © <a href="https://github.com/cnpm" target="_blank">cnpm</a>
|
<a href="/">Home</a>
</div>
Try again with WebDriverManager 3.8.1. If the error persists, please report the WebDriverManager traces. I mean something like this:
2020-01-19 00:45:49 [main] DEBUG io.github.bonigarcia.wdm.Shell.runAndWaitArray(55) -- Running command on the shell: [chromium-browser, --version]
2020-01-19 00:45:50 [main] DEBUG io.github.bonigarcia.wdm.Shell.runAndWaitArray(57) -- Result: Chromium 79.0.3945.79 Built on Ubuntu , running on Ubuntu 18.04
2020-01-19 00:45:50 [main] DEBUG i.g.bonigarcia.wdm.WebDriverManager.getDriverVersionForBrowserFromProperties(685) -- Getting driver version for chrome79 from online versions.properties
2020-01-19 00:45:50 [main] INFO i.g.bonigarcia.wdm.WebDriverManager.detectDriverVersionFromBrowser(615) -- Using chromedriver 79.0.3945.36 (since Chromium 79 is installed in your machine)
2020-01-19 00:45:50 [main] DEBUG io.github.bonigarcia.wdm.Preferences.putValueInPreferencesIfEmpty(66) -- Storing preference chromium=79 (valid until 2020-01-20 00:45:50)
2020-01-19 00:45:50 [main] DEBUG io.github.bonigarcia.wdm.Preferences.putValueInPreferencesIfEmpty(66) -- Storing preference chromium79=79.0.3945.36 (valid until 2020-01-20 00:45:50)
2020-01-19 00:45:50 [main] DEBUG i.g.bonigarcia.wdm.WebDriverManager.downloadAndExport(564) -- Driver chromedriver 79.0.3945.36 found in cache
2020-01-19 00:45:50 [main] INFO i.g.bonigarcia.wdm.WebDriverManager.exportDriver(1113) -- Exporting webdriver.chrome.driver as /home/boni/.m2/repository/webdriver/chromedriver/linux64/79.0.3945.36/chromedriver
Starting ChromeDriver 79.0.3945.36 (3582db32b33893869b8c1339e8f4d9ed1816f143-refs/branch-heads/3945@{#614}) on port 19120
Only local connections are allowed.
Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.
Jan 19, 2020 12:45:51 AM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C
Sorry for the lack of response, 3.8.1 fixed this issue. Thanks!