Protractor BDD sample tests using cucumber
- Project setup with Protractor version 5.1.2.
- Makes use of Page Objects.
- Written in Java script
- Page Object classes are in the
./pagesdirectory and should inherit frombasePage.po. - Specs scripts are in the
./specsdirectory, grouped into directory by page or functionality. - Mock data (eg usernames and pws) are in
./datadirectory. - Utility functions are in
./utilsdirectory.
- Install Node (v6.x.x or later)
- Follow setup steps described here
npm installto install the project dependencies- 'webdriver-manager update' to install selenium & borwser specific drivers
npm run protractorRun tests using Chrome browser.