phantomjs报错version: 'unknown', revision: 'unknown', time: 'unknown'解决办法

Open 这个 分享 由 lemontea 发布于 2017-11-27 · 1120 阅读 0 回复
lemontea 评论于 2017-11-27

错误信息:

org.openqa.selenium.WebDriverException: Timed out waiting for driver server to start.
Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: host: 'iZwz9h8nr0sr6xz078svlkZ', ip: '10.173.187.111', os.name: 'Linux', os.arch: 'amd64', os.version: '2.6.32-573.22.1.el6.x86_64', java.version: '1.8.0_45'
Driver info: driver.version: PhantomJSDriver
        at org.openqa.selenium.remote.service.DriverService.waitUntilAvailable(DriverService.java:192)
Caused by: org.openqa.selenium.net.UrlChecker$TimeoutException: Timed out waiting for [http://localhost:5826/status] to be available after 20002 ms
        at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:100)
Caused by: java.util.concurrent.TimeoutException
        at java.util.concurrent.FutureTask.get(FutureTask.java:205) ~[?:1.8.0_45]
        at com.google.common.util.concurrent.SimpleTimeLimiter.callWithTimeout(SimpleTimeLimiter.java:147)

解决办法:phantom web driver的版本有问题。