我在selenium 2中收到“org.openqa.selenium.WebDriverException:chrome not accessiblehable”错误

时间:2013-06-12 09:41:21

标签: selenium-webdriver

有人可以帮我解决这个问题吗?

在尝试启动Chrome浏览器时,我收到了上述错误。镀铬会打开一段时间,但会自动关闭。

chrome的版本是:27和

chromedriver:chromedriver_win_26.0.1383.0

日志文件包含:

[0612/150351:INFO:chromedriver_server.cc(76)] Handling request: /status 
[0612/150351:INFO:chromedriver_server.cc(81)] Done handling request: 200 {"sessionId":"","status":0,"value":{"build":{"version":"alpha"},"os":{"arch":"x86","name":"Windows NT","version":"6.1"}}}
[0612/150351:INFO:chromedriver_server.cc(76)] Handling request: /session {"desiredCapabilities":{"platform":"ANY","browserName":"chrome","chromeOptions":{"args":[],"extensions":[]},"version":"","chrome.switches":[]}}
[0612/150351:INFO:chrome_launcher.cc(74)] Using chrome from C:\Program Files\Google\Chrome\Application\chrome.exe
[0612/150414:INFO:chromedriver_server.cc(81)] Done handling request: 200 {"sessionId":"","status":101,"value":{"message":"chrome not reachable\n  (Driver info: chromedriver=0.8,platform=Windows NT 6.1 x86)"}}

1 个答案:

答案 0 :(得分:1)

尝试使用此链接的chrome驱动程序并检查它是否正常工作。

http://chromedriver.googlecode.com/files/chromedriver_win32_2.0.zip