2013-02-12 46 views
4

直到今天,我一直在使用chromedriver來驅動我的watir-webdriver測試,並且我沒有任何問題。我的服務器仍然可以運行,並在相同版本的chromedriver和chrome上運行測試。Chromedriver無法啓動或連接

我已經嘗試更新到最新的chromedriver,這是chromedriver 2的實驗版本。這失敗了,因爲我只能假設仍然存在錯誤。 我也嘗試回滾到以前的版本的chromedriver沒有成功。

如果有人有這方面的經驗,我會非常感謝您的專業知識。我相信它會變成我忽略的簡單東西。

寶石版本:從chromedriver

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

跟蹤以下

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) 
+0

我見過這種間歇性的最新版本26.0.1383和Chrome 25.0.1364.172米;但是當它出現在一個測試中時,其他人工作正常。雖然 – MichaelF 2013-03-20 14:38:22

+0

您確定您的服務器與您的工作站具有相同的Chrome瀏覽器版本,但無法複製一致性錯誤?大多數時候我都看到過這樣的事情,這是由於我的工作站上的Chrome進行了靜默升級,我需要更新版本的chromedriver – 2013-11-08 05:56:25

回答

0

要擺脫gpu winsat錯誤,請嘗試更新顯示適配器。

相關問題