-
Notifications
You must be signed in to change notification settings - Fork 4.7k
run protractor fails, Error: Timed out waiting for the WebDriver server #276
Comments
Hi jackwhit3, |
Hi @hellrider42 , |
I made it work with your solution indeed, thanks. |
I can confirm that @jackwhit3 's solutions. However, I still want to make it work without using the direct connect option. What is causing this error? |
@Alecsandre 's solution at #230 worked for me in Windows 10 64b |
Helped! |
@jackwhit3I removed chromeOnly: true and added directConnect: true in test/protractor-conf.js.It works! thanks |
OMG - after losing my night trying to get this stupid test to run, @jackwhit3 's solution worked. Thanks so much! |
@jackwhit3 Thanks a lot. your solution solved my issue. |
@jackwhit3 |
Thanks @jackwhit3 it works for me on my Mac 10.11.2 |
@jackwhit3 Thank You Very Much! it works on Centos7 x64 |
Thanks @jackwhit3 it works for me on my Mac 10.10.1 and Chrome version must be >= 43.0.2357.0 |
Thank you @jackwhit3, is there an alternative for "directConnect" ? Please let me know. |
"directConnect: true" solved my problem. Thanks man! |
add directConnect: true to protractor.conf.js |
Didn't work for me. I'm already using |
Installing the latest Java 8 JRE using |
I use selenium webdriverjs and i have this same problem but I can not find the rotractor-conf.js |
It is in |
Was trying out the tutorial and ran into this today. Had to add this to directConnect: true The tags in the tutorial don't have this change. |
If you search google for "Timed out waiting for Webdriver" this is the first result. I find it worth to mention, that this Error happens when you use Firefox > 47.0 with an Selenium version < 3.0. |
adding |
In my case, chrome was not installed, installing helped: https://askubuntu.com/a/510186 |
Quick and easy question: |
I'm running on a Mac OS X Yosemite v10.10.2.
Resembles #168 , tried with their solution running
./node_modules/.bin/protractor test/protractor-conf.js
still does not work.Also relates to this issue, but the commit doesn't seem to solve.
selenium standalone is up to date.
chromedriver is up to date.
Starting selenium standalone server...
[launcher] Running 1 instances of WebDriver
[launcher] Process exited with error code 1
/Users/lihsing/Workspace/angular-phonecat/node_modules/protractor/node_modules/selenium-webdriver/lib/goog/async/nexttick.js:39
goog.global.setTimeout(function() { throw exception; }, 0);
^
Error: Timed out waiting for the WebDriver server at http://192.168.0.102:54508/wd/hub
at Error (native)
at onResponse (/Users/lihsing/Workspace/angular-phonecat/node_modules/protractor/node_modules/selenium-webdriver/http/util.js:87:66)
at /Users/lihsing/Workspace/angular-phonecat/node_modules/protractor/node_modules/selenium-webdriver/http/util.js:42:21
at /Users/lihsing/Workspace/angular-phonecat/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/http/http.js:123:5
at ClientRequest. (/Users/lihsing/Workspace/angular-phonecat/node_modules/protractor/node_modules/selenium-webdriver/http/index.js:145:7)
at ClientRequest.emit (events.js:107:17)
at Socket.socketErrorListener (_http_client.js:271:9)
at Socket.emit (events.js:107:17)
at net.js:459:14
at process._tickCallback (node.js:355:11)
npm ERR! Darwin 14.1.0
npm ERR! argv "/Users/lihsing/.nvm/versions/node/v0.12.7/bin/node" "/Users/lihsing/.nvm/versions/node/v0.12.7/bin/npm" "run" "protractor"
npm ERR! node v0.12.7
npm ERR! npm v2.11.3
npm ERR! code ELIFECYCLE
npm ERR! angular-phonecat@0.0.0 protractor:
protractor test/protractor-conf.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the angular-phonecat@0.0.0 protractor script 'protractor test/protractor-conf.js'.
npm ERR! This is most likely a problem with the angular-phonecat package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! protractor test/protractor-conf.js
npm ERR! You can get their info via:
npm ERR! npm owner ls angular-phonecat
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/lihsing/Workspace/angular-phonecat/npm-debug.log
npm-debug.log:
0 info it worked if it ends with ok
1 verbose cli [ '/Users/lihsing/.nvm/versions/node/v0.12.7/bin/node',
1 verbose cli '/Users/lihsing/.nvm/versions/node/v0.12.7/bin/npm',
1 verbose cli 'run',
1 verbose cli 'protractor' ]
2 info using npm@2.11.3
3 info using node@v0.12.7
4 verbose run-script [ 'preprotractor', 'protractor', 'postprotractor' ]
5 info preprotractor angular-phonecat@0.0.0
6 verbose unsafe-perm in lifecycle true
7 info protractor angular-phonecat@0.0.0
8 verbose unsafe-perm in lifecycle true
9 info angular-phonecat@0.0.0 Failed to exec protractor script
10 verbose stack Error: angular-phonecat@0.0.0 protractor:
protractor test/protractor-conf.js
10 verbose stack Exit status 1
10 verbose stack at EventEmitter. (/Users/lihsing/.nvm/versions/node/v0.12.7/lib/node_modules/npm/lib/utils/lifecycle.js:213:16)
10 verbose stack at EventEmitter.emit (events.js:110:17)
10 verbose stack at ChildProcess. (/Users/lihsing/.nvm/versions/node/v0.12.7/lib/node_modules/npm/lib/utils/spawn.js:24:14)
10 verbose stack at ChildProcess.emit (events.js:110:17)
10 verbose stack at maybeClose (child_process.js:1015:16)
10 verbose stack at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
11 verbose pkgid angular-phonecat@0.0.0
12 verbose cwd /Users/lihsing/Workspace/angular-phonecat
13 error Darwin 14.1.0
14 error argv "/Users/lihsing/.nvm/versions/node/v0.12.7/bin/node" "/Users/lihsing/.nvm/versions/node/v0.12.7/bin/npm" "run" "protractor"
15 error node v0.12.7
16 error npm v2.11.3
17 error code ELIFECYCLE
18 error angular-phonecat@0.0.0 protractor:
protractor test/protractor-conf.js
18 error Exit status 1
19 error Failed at the angular-phonecat@0.0.0 protractor script 'protractor test/protractor-conf.js'.
19 error This is most likely a problem with the angular-phonecat package,
19 error not with npm itself.
19 error Tell the author that this fails on your system:
19 error protractor test/protractor-conf.js
19 error You can get their info via:
19 error npm owner ls angular-phonecat
19 error There is likely additional logging output above.
20 verbose exit [ 1, true ]
The text was updated successfully, but these errors were encountered: