Error: could not find chrome reverse in the next official angularjs user guide

First I have to say that this is my first contact with angularjs and node.js, so this will probably be a dumb problem, but I want to learn how to work with angularjs, so I followed this tutorial https://docs.angularjs.org/tutorial , and everything went as expected, until I get to Run end to end tests .

When I run this command:

npm run update-webdriver 

He says:

 selenium standalone is up to date. chromedriver is up to date. 

Then I turn on the local server:

 npm start 

And while it works, I run tests:

 npm run protractor 

which in my terminal leads to: o

Using ChromeDriver directly ...

[launcher] Error: could not find chrome reverse / Home / dsh / WWW / angular -phonecat / node_modules / protractor / selenium / chromedriver.exe

Th the chromedriver.exe file really does not exist (there is chromedriver_2.10.zip), and I really don't think the .exe file should be there, given that Im uses ubuntu 14.04 (this shoul tutorial is for angular version 1.4.0).

Is this for some versions of Windows?

Can someone help me (the way a newbie could understand :))?

+7
angularjs npm selenium selenium-webdriver
source share
2 answers

You need to use webdriver-manager inside the protractor package:

 node_modules/protractor/bin/webdriver-manager update 
+21
source share

I followed the tutorial on AngularJS step 3 and had the same problem, but was caused by a missing chrome file file. I solved this with the following steps:

  • Go to the angular -phonecat \ node_modules \ protractor \ selenium folder to find out if you have the following two files:

    • chromedriver.exe
    • selenium server stand-alone-2.42.2.jar
  • If not, download the chromodrow from here: http://chromedriver.storage.googleapis.com/index.html and selenium from here: http://docs.seleniumhq.org/download/

  • Then put the downloaded files in the angular-phonecat\node_modules\protractor\selenium folder

  • In the command window, enter npm start to start the application, and in the second command window, enter npm run protractor to start checking the end using the protractor.

Then you will see a beautiful Chrome window and run the tests.

+10
source share

All Articles