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

Cryptic error when no java installed #76

Closed
Yogu opened this issue Mar 6, 2014 · 5 comments
Closed

Cryptic error when no java installed #76

Yogu opened this issue Mar 6, 2014 · 5 comments

Comments

@Yogu
Copy link

Yogu commented Mar 6, 2014

I configured nightwatch to manage the selenium server like this:

"selenium" : {
  "start_process" : true,
  "server_path" : "selenium-server-standalone-2.40.0.jar",
 // ...

and then I ran the following shell script without arguments:

#!/usr/bin/env node
require('nightwatch/bin/runner.js');

It gave me the following output

Starting selenium server... 
events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: spawn ENOENT
    at errnoException (child_process.js:980:11)
    at Process.ChildProcess._handle.onexit (child_process.js:771:34)

It took me a while to figure out that java wasn't installed on my machine. It would be great if nightwatch displayed an error like "java not found".

@beatfactor
Copy link
Member

You're absolutely right, I'll try to add this soon, that error (thrown by node.js) is not helpful in the slightest.

@beatfactor
Copy link
Member

this should have been added into v0.4.1. Could you please check and if it's still there, re-open this?

@Yogu
Copy link
Author

Yogu commented Mar 17, 2014

Nope, I still get the same error in v0.4.2.

I also don't have the permission to open this issue.

beatfactor added a commit that referenced this issue Mar 17, 2014
@beatfactor
Copy link
Member

Sorry, this ought to do it. It will be in npm soon also.

@Yogu
Copy link
Author

Yogu commented Mar 18, 2014

Now it works (v0.4.4)

Starting selenium server... 
An error occured while trying to start Selenium. Check if JAVA is installed on your machine.
{ [Error: spawn ENOENT]
  code: 'ENOENT',
  errno: 'ENOENT',
  syscall: 'spawn' }
INFO Selenium process finished.

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

2 participants