SeleniumHQ / selenium-google-code-issue-archive

Archive, please see main selenium repo
https://github.com/seleniumhq/selenium
345 stars 195 forks source link

WebDriverError: unknown error: chrome failed to start #8828

Closed wangjiangchuan closed 7 years ago

wangjiangchuan commented 7 years ago

Hi here, I meet a problem. When I use chromedriver to test my app, there is problem about the chromedriver running on my macOS sierra.

The following error msg is: Error: Command failed: node /Users/denny/Desktop/MyTest/AutoTest/AutoTests/html/../autoTest/ActTest.js /Users/denny/Desktop/MyTest/Activatorv2.5.20170811.app /Users/denny/Desktop/MyTest/AutoTest-mac/autoTest/TestEdit.js /Users/denny/Desktop/MyTest/AutoTest/AutoTests/node_modules/selenium-webdriver/lib/promise.js:2634 throw error; ^

WebDriverError: unknown error: chrome failed to start (Driver info: chromedriver=2.32.498537 (cb2f855cbc7b82e20387eaf9a43f6b99b6105061),platform=Mac OS X 10.12.6 x86_64) at Object.checkLegacyResponse (/Users/denny/Desktop/MyTest/AutoTest/AutoTests/node_modules/selenium-webdriver/lib/error.js:529:15) at parseHttpResponse (/Users/denny/Desktop/MyTest/AutoTest/AutoTests/node_modules/selenium-webdriver/lib/http.js:509:13) at doSend.then.response (/Users/denny/Desktop/MyTest/AutoTest/AutoTests/node_modules/selenium-webdriver/lib/http.js:441:30) at at process._tickCallback (internal/process/next_tick.js:188:7) From: Task: WebDriver.createSession() at Function.createSession (/Users/denny/Desktop/MyTest/AutoTest/AutoTests/node_modules/selenium-webdriver/lib/webdriver.js:769:24) at createDriver (/Users/denny/Desktop/MyTest/AutoTest/AutoTests/node_modules/selenium-webdriver/index.js:170:33) at Builder.build (/Users/denny/Desktop/MyTest/AutoTest/AutoTests/node_modules/selenium-webdriver/index.js:635:14) at Object. (/Users/denny/Desktop/MyTest/AutoTest/AutoTests/autoTest/ActTest.js:49:6) at Module._compile (module.js:573:30) at Object.Module._extensions..js (module.js:584:10) at Module.load (module.js:507:32) at tryModuleLoad (module.js:470:12) at Function.Module._load (module.js:462:3) at Function.Module.runMain (module.js:609:10)

The chromedriver running is Verison 2.32, b4bit for macOS, The current os version is Mac OS X 10.12.6 x86_64. The chrome version used varies from 61 to 58, that's to say, I had tried many versions, cuz I think it's a problem about the version of Chrome. But failed.

Great thanks for helping me solving the problem, it has been suspend for many days.