Installing and configuring Protractor

The preferred method is to install Protractor globally with the following command:

npm install protractor -g

Protractor will automatically download the Selenium Standalone Server and all the browser drivers.

The Selenium Standalone Server is normally needed if you want to connect to remote machine(s) and run tests against browser(s) on remote machine(s). It is often used with Selenium-Grid when you distribute your tests over multiple machines.

Execute this command to update the Selenium Standalone Server and the browser drivers:

webdriver-manager update

Ensure that you have installed the jasmine-core package locally as shown in the Setting up unit testing with Jasmine and Karma section . The tests ...

Get Angular UI Development with PrimeNG now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.