April 2017
Beginner to intermediate
378 pages
7h 57m
English
Now that we have completed writing the tests, we will execute the same. Open a command prompt/terminal at the root of the project and run the following command:
protractor
You may face an error, which looks something like:
// snippError message: Could not find update-config.json. Run 'webdriver-manager update' to download binaries.// snipp
If so, run the following command:
./node_modules/protractor/bin/webdriver-manager update
And after that run protractor or ./node_modules/.bin/protractor.
And you should see a browser launch and the app being navigated. If everything goes well, you should see the following output in the command prompt/terminal:
todoapp_v2 ./node_modules/.bin/protractor[00:37:27] I/launcher - Running ...
Read now
Unlock full access