angular / protractor

E2E test framework for Angular apps
http://www.protractortest.org
MIT License
8.75k stars 2.31k forks source link

Protractor fail to launch chrome-driver on local mac machine #5501

Open surajsalunkhe opened 3 years ago

surajsalunkhe commented 3 years ago

Bug report



- Output from running the test
[19:40:41] I/launcher - Running 1 instances of WebDriver
[19:40:41] I/hosted - Using the selenium server at http://localhost:4444/wd/hub
[19:41:01] E/launcher - Timed out waiting for driver server to start.
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'
System info: host: 'Surajs-MacBook-Pro.local', ip: 'XXX', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.15.7', java.version: '1.8.0_261'
Driver info: driver.version: unknown
[19:41:01] E/launcher - WebDriverError: Timed out waiting for driver server to start.
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'
System info: host: 'Surajs-MacBook-Pro.local', ip: 'XXXX', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.15.7', java.version: '1.8.0_261'
Driver info: driver.version: unknown
    at Object.checkLegacyResponse (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/error.js:546:15)
    at parseHttpResponse (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/http.js:509:13)
    at /usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/http.js:441:30
    at processTicksAndRejections (node:internal/process/task_queues:94:5)
From: Task: WebDriver.createSession()
    at Function.createSession (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver.js:769:24)
    at Function.createSession (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/chrome.js:761:15)
    at createDriver (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/index.js:170:33)
    at Builder.build (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/index.js:626:16)
    at Hosted.getNewDriver (/usr/local/lib/node_modules/protractor/built/driverProviders/driverProvider.js:53:33)
    at Runner.createBrowser (/usr/local/lib/node_modules/protractor/built/runner.js:195:43)
    at /usr/local/lib/node_modules/protractor/built/runner.js:339:29
    at _fulfilled (/usr/local/lib/node_modules/protractor/node_modules/q/q.js:834:54)
    at /usr/local/lib/node_modules/protractor/node_modules/q/q.js:863:30
    at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/protractor/node_modules/q/q.js:796:13)
[19:41:01] E/launcher - Process exited with error code 199
- Steps to reproduce the bug
- Naviagte to folder and protractor conf.js
- The URL you are running your tests against (if relevant)
(Note: It's working for firefox browser if set capabilities>'browserName': 'firefox')
andredesousa commented 3 years ago

Try running webdriver-manager update to update the version of your chromedriver.

Also, you can see my configuration: https://github.com/andredesousa/essential-angular-scaffold/blob/main/e2e/protractor.conf.js

duydnguyen07 commented 2 years ago

I have the same issue and I think this might be related to the webdriver-manager version that protractor uses. https://github.com/angular/webdriver-manager/commit/9fd6294517cdcd7fcf87994b84792db994d19003

Is it possible to update protractor's dependency?

fbaldo31 commented 2 years ago

You can call the file directly like node node_modules/protractor/bin/webdriver-manager update