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: '', '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(
Caused by:$TimeoutException: Timed out waiting for [http://localhost:5826/status] to be available after 20002 ms
Caused by: java.util.concurrent.TimeoutException
        at java.util.concurrent.FutureTask.get( ~[?:1.8.0_45]

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