【问题标题】:Chromedriver failing to launch or connectChromedriver 无法启动或连接
【发布时间】:2013-02-12 12:30:59
【问题描述】:

直到今天,我一直在使用 chromedriver 来驱动我的 watir-webdriver 测试,我没有遇到任何问题。我的服务器仍然可以在相同版本的 chromedriver 和 chrome 上运行并运行测试。

我已尝试更新到最新的 chromedriver,即 chromedriver 2 实验版本。这失败了,因为我只能假设仍然有错误正在解决。 我也尝试回滚到以前版本的 chromedriver,但没有成功。

如果有人对此有任何经验,我将非常感谢您的专业知识。我相信它会变成我忽略的一些简单的东西。

宝石版本:

watir-webdriver (0.6.2)
selenium-webdriver (2.29.0)
cucumber (1.2.1)

从下面的 chromedriver 跟踪

Started ChromeDriver port=9517 version=26.0.1383.0
log=C:\Projects\oms_acceptance_tests\src\chromedriver.log
[6136:5300:0212/122320:ERROR:master_preferences.cc(110)] Failed to read master_preferences file at C:\Program Files (x86)\Google\Chrome\Application\master_preferences. Falling back to default preferences.

[6136:5300:0212/122320:ERROR:gpu_info_collector_win.cc(82)] Can't retrieve a valid WinSAT assessment.
test\automation\proxy_launcher.cc(107): error: Value of: app_launched
Actual: 5
Expected: AUTOMATION_SUCCESS
Which is: 0
Error while awaiting automation ping from browser process

[0212/122321:ERROR:proxy_launcher.cc(556)] Failed to ConnectToRunningBrowser

[0212/122321:ERROR:automation_proxy.cc(319)] Channel error in AutomationProxy.
Unable to either launch or connect to Chrome. Please check that ChromeDriver is up-to-date. Using Chrome binary at: C:\Program Files (x86)\Google\Chrome\Application\chrome.exe (Selenium::WebDriver::Error::UnknownError)

【问题讨论】:

  • 我在最近的版本 26.0.1383 和 Chrome 25.0.1364.172 m 中看到过这种情况;但是虽然它出现在一项测试中,但其他人工作正常。虽然无法复制一致的错误
  • 您确定您的服务器与您的工作站具有完全相同的 chrome 版本吗?大多数时候我看到这样的东西,这是由于我的工作站上的 chrome 默默升级,我需要一个更新版本的 chromedriver

标签: google-chrome watir-webdriver selenium-chromedriver


【解决方案1】:

我会尝试下载更新版本的chromedriver。当我遇到类似问题时为我工作。

【讨论】:

    【解决方案2】:

    要消除 gpu winsat 错误,请尝试更新您的显示适配器。

    【讨论】: