Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install protractor and start it?

Tags:

protractor

I followed instructions in the document on how to install protractor and selenium and I am unable to start.

install -g protractor

webdriver-manager update

After that I tried

webdriver-manager start and I got an error

events.jst:72
throw er; // Unhandeled 'error event
Error: spawn ENOENT
at errnoException (child_projcess.js:980:11)
at Process.ChildProcess.handle.onexeit (childprocess.js:771:34)

If I do webdriver-manager status I get this

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

What is going on?

like image 507
epitka Avatar asked Dec 20 '13 16:12

epitka


2 Answers

Looks like you are running on the mac platform.

Installing it globally as you are doing, installs it to the system's node_module folder. You should try and install it locally for the project as its a project dependency.

so run: npm install protractor

like image 194
jonh Avatar answered Nov 10 '22 01:11

jonh


Kind of old, but what solved it for me was to install java:

In an Ubuntu system:

sudo apt-get install openjdk-7-jre

In Fedora:

sudo yum install java-1.8.0-openjdk

Keep hacking!

like image 21
mimoralea Avatar answered Nov 10 '22 03:11

mimoralea