Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: dalek-driver-chrome: Could not launch Chromedriver #15

Open
tim3trick opened this issue Mar 12, 2014 · 5 comments
Open

ERROR: dalek-driver-chrome: Could not launch Chromedriver #15

tim3trick opened this issue Mar 12, 2014 · 5 comments
Assignees

Comments

@tim3trick
Copy link

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

ERROR: dalek-driver-chrome: Could not launch Chromedriver

@asciidisco
Copy link
Member

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.

@asciidisco asciidisco added the bug label Mar 30, 2014
@asciidisco asciidisco self-assigned this Mar 30, 2014
@mezz
Copy link
Contributor

mezz commented Aug 13, 2014

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.

@mezz
Copy link
Contributor

mezz commented Aug 14, 2014

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.

@mezz
Copy link
Contributor

mezz commented Aug 14, 2014

Turns out a chromedriver instance started by dalek was never closed and was still running.

killall chromedriver on the command line fixed the issue.

@asciidisco
Copy link
Member

That really helps, only a few lines of code can cause this. Will look into it again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants