官方Google Selenium Wiki(http://code.google.com/p/selenium/wiki/ChromeDriver)中的示例代码片段都不适用于我。无论是单独启动Selenium服务器还是使用ChromeDriverService,它都会在“新的RemoteWebDriver(...)”行挂起。这是我的控制台上的输出:Java中的ChromeDriver实例永远挂起?
/tmp/chromedriver: error while loading shared libraries: libbz2.so.1.0: cannot open shared object file: No such file or directory
Jun 29, 2011 8:46:58 AM org.openqa.selenium.net.UrlChecker waitUntilAvailable
INFO: Waiting for [Ljava.net.URL;@16df84b
Jun 29, 2011 8:46:58 AM org.openqa.selenium.net.UrlChecker$1 call
INFO: Polling http://localhost:21461/status
Jun 29, 2011 8:46:58 AM org.openqa.selenium.net.UrlChecker$1 call
INFO: Polling http://localhost:21461/healthz
Jun 29, 2011 8:46:59 AM org.openqa.selenium.net.UrlChecker$1 call
INFO: Polling http://localhost:21461/status
...
这是投票healthz和状态永远?
您好,感谢提示,但这不完全是我的问题。我可以毫无问题地手动启动./google-chrome。它只会在我试图实例化一个新的ChromeDriver()时挂起。 –