Open tim3trick opened 10 years ago
Hmm, hard to debug without seeing the code that is causing this. Would you mind posting it or a reduced test case behaving the same? Thanks.
Getting the same issue on OS X.
Running tests
Running Browser: Google Chrome
OS: Mac OS X 10.9.4 x86_64
Browser Version: 36.0.1985.143
>> ERROR: dalek-driver-chrome: Could not launch Chromedriver
edit: reinstalled node, dalek, dalek-browser-chrome, restarted, and the problem went away.
I have the problem again, and gathered some more information:
first time _catchDriverLogs
is called, dataStr
is "Starting ChromeDriver (v2.9.248307) on port 9002"
timeout is created and cleared right away
second time, dataStr
is "Port not available. Exiting..."
timeout is created again and triggers the error message "dalek-driver-chrome: Could not launch Chromedriver"
I'll see if I can find out more about the underlying error.
Turns out a chromedriver instance started by dalek was never closed and was still running.
killall chromedriver
on the command line fixed the issue.
That really helps, only a few lines of code can cause this. Will look into it again.
Tests starts up sucessfully but fails (way before done):
$ dalek test/simple.js -b chrome Running tests Running Browser: Google Chrome OS: Linux 3.11.0-17-generic x86_64 Browser Version: 33.0.1750.149
RUNNING TEST - "Can login" ▶ OPEN http://... ✔ EXISTS Login form exists. ✔ EXISTS Login button exists. ▶ TYPE #Benutzername ▶ TYPE #Passwort