/baryte

Nightwatch Framework; baryte - derived from the ancient greek word barús, 'heavy'

Primary LanguageJavaScript

Nightwatch

https://nightwatchjs.org/

What is nightwatch

Nightwatch.js is an automated testing framework for web applications and websites, written in Node.js and using the W3C WebDriver API (formerly Selenium WebDriver).

Requirements

node

Steps

1. Create a working project directory
2. Initialize the directory with git: git init
3. Create a package.json file: npm init -y
4. Install nw as a dependency: npm install nightwatch --save-dev
5. Change 'test script' in the package.json to 'nightwatch'
6. Add nightwatch.conf.js file
7. Add nightwatch.json
8. Add chromedriver as a dependency: npm i chromedriver --save-dev
9. Run test by type npm test, or the command 'nightwatch'