selenium-google-code-issue-archive
selenium-google-code-issue-archive copied to clipboard
Error: spawn ENOENT
Originally reported on Google Code with ID 8214
Before filing an issue, please read the page at
http://code.google.com/p/selenium/wiki/SeleniumHelp This contains lot of
information about how best to get help, and tells you what we need to know.
Still here? We know that bugs are frustrating and annoying things. We also
know that you've probably spent ages trying to figure out what's wrong. The
more information you give us now, the more likely it is that we'll be able
to help.
What steps will reproduce the problem?
1.
```js
var webdriver = require('selenium-webdriver'),
SeleniumServer = require('selenium-webdriver/remote').SeleniumServer;
var pathToSeleniumJar = require('path').join(process.cwd(), 'selenium-server-standalone-2.44.0.jar');
var server = new SeleniumServer(pathToSeleniumJar, {
port: 4444
});
server.start();
var driver = new webdriver.Builder().
usingServer(server.address()).
withCapabilities(webdriver.Capabilities.ie()).
build();
// ...
- node example.js 3.
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)
What is the expected output? What do you see instead?
Selenium version: 2.44.0 OS: Windows 7 Browser: IE Browser version: 8
Note: the path to the jar is correct and everything seems fine when console logging the spawn arguments.
Reported by `alessio.ijoomla` on 2014-11-25 14:48:33
Reported by barancev
on 2014-12-01 19:40:29
- Labels added: Lang-Javascript
Reported by jmleyba
on 2015-01-19 23:18:36
- Labels added: OpSys-Windows
Reported by luke.semerau
on 2015-09-17 17:47:30
- Labels added: Restrict-AddIssueComment-Commit