A lightweight demo project for UI test automation using Selenium WebDriver, Mocha, and Chai in JavaScript.
-
π Browser automation with selenium-webdriver
-
β Test runner: mocha
-
π¬ Assertions with chai
-
π Auto-reloading test runner via nodemon (optional)
-
π§ Easily extendable and customizable structure
| Tool | Purposen |
|---|---|
| selenium-webdriver | Controls the browser for UI automation |
| mocha | Test runner for writing and executing tests |
| chai | Assertion library to verify test outcomes |
| nodemon (dev) | Automatically reruns tests on file change |
Clone the project and install dependencies:
npm installOr step-by-step:
npm install selenium-webdriver
npm install --save-dev mocha chai
npm install --save-dev nodemonTo run your tests:
npm testnodemon will be used automatically for auto-reloading: