- Install the chromedriver package via:
npm install chromedriver --save
or install with a local binary via:
npm install chromedriver --chromedriver_filepath=C:\\YOUR_PROJECT_PATH\\chromedriver.zip
- Install packages.
npm install
- Create a folder "tests" and place
test.js
inside it. - Run the tests by using the command
nightwatch
- Run individual tests with the command
nightwatch --test tests\\test.js --testcase demoTestGoogle