直到昨天我还在使用 Webdriver Manager,它工作成功。但今天它正在抛出一些UnknownHostException
我的依赖:
<dependency>
<groupId>io.github.bonigarcia</groupId>
<artifactId>webdrivermanager</artifactId>
<version>3.0.0</version>
<scope>test</scope>
</dependency>
这是我用来打开浏览器的方式:
WebDriverManager.chromedriver().setup();
driver = new ChromeDriver();
我找不到Perfect Solution
但我得到some solution
的是not clear
你们能帮帮我吗!
我的错误:
[INFO] Running TestSuite
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[ERROR] Tests run: 3, Failures: 1, Errors: 0, Skipped: 2, Time elapsed: 1.382 s <<< FAILURE! - in TestSuite
[ERROR] Start_Browser(Test.LoginTest) Time elapsed: 1.257 s <<< FAILURE!
io.github.bonigarcia.wdm.WebDriverManagerException: java.net.UnknownHostException: chromedriver.storage.googleapis.com
at Test.LoginTest.Start_Browser(LoginTest.java:19)
Caused by: java.net.UnknownHostException: chromedriver.storage.googleapis.com
at Test.LoginTest.Start_Browser(LoginTest.java:19)
[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR] LoginTest.Start_Browser:19->Openbrowser.Setupbrowser:18 » WebDriverManager jav...
[INFO]