NOTE: This code is based on the Protractor Typescript Example.
This package.json references the local protractor directory with
"protractor": "file: ../"
. For the type declarations to work, from
the protractor directory run an npm install
to generate the declarations
file. If you do not have a protractor
directory, clone one:
cd ..; git clone [email protected]:angular/protractor.git
Now install your dependencies:
npm install
Make sure you have an updated web driver:
../protractor/bin/webdriver-manager update
First, start your web driver:
../protractor/bin/webdriver-manager start
Then you can run your test suite:
npm test
Specs/Scenarios and spec helpers are in the specs/
directory.