1. 程式人生 > >解決問題 WebDriverException: Message: unknown error: cannot find Chrome binary

解決問題 WebDriverException: Message: unknown error: cannot find Chrome binary

edr framework win 運行 ive screen 再次 ror 錯誤

通過jenkins來執行RobotFramework的腳本, 在執行機命令行中運行是完全OK的, 而通過jenkins執行相應的命令就提示下面的錯誤:

單項預訂                                                                      
==============================================================================
單項預訂.測試用例                                                             
==============================================================================
單項預訂.測試用例.01 景點(多票種非對接)                                     
==============================================================================
預訂基本流                                                            [ WARN ] Keyword ‘Capture Page Screenshot‘ could not be run on failure: No browser is open
| FAIL |
WebDriverException: Message: unknown error: cannot find Chrome binary
  (Driver info: chromedriver=2.29.461591 (62ebf098771772160f391d75e589dc567915b233),platform=Windows NT 6.1.7601 SP1 x86_64)



折騰了一天之後,終於找著原因,,,

我的Chrome不知道為啥安裝到C盤的User目錄裏面,卸載後重新安裝,安裝在C盤的Program Files (x86)目錄下, 再次通過jenkins執行, 完美運行。

解決問題 WebDriverException: Message: unknown error: cannot find Chrome binary