Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Protractor - error when starting on Ubuntu 14.04

I'm trying to set up Protractor on Ubuntu 14.04 LTS and I'm getting the following error on this command:

> sudo webdriver-manager start

The error is:

seleniumProcess.pid: 52352

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

Results of webdriver-manager status:

selenium standalone is up to date
chromedriver is up to date
IEDriver is not present

JDK looks to be installed already (java --version):

The program 'java' can be found in the following packages:
 * default-jre
 * gcj-4.8-jre-headless
 * openjdk-7-jre-headless
 * gcj-4.6-jre-headless
 * openjdk-6-jre-headless
Try: sudo apt-get install <selected package>

Any ideas?

like image 313
mariachimike Avatar asked Aug 17 '14 06:08

mariachimike


1 Answers

Ensure java is installed:

sudo apt-get install openjdk-7-jre-headless

Dealing with webdriver-manager doesn't require sudo:

webdriver-manager start
like image 169
Leo Gallucci Avatar answered Nov 15 '22 21:11

Leo Gallucci