Note: This is a simple implementation of using Selenium WebDriver in Javascript.
For more detailed infos, you can refer to the official Selenium Docs - Selenium Docs.
- First, you need to install mocha testing framework globally on your machine by running the following command:
npm i --global mocha
- Next, run the following command:
mocha testScript.spec.js
node sample.js
- You can also refer to the available testing scripts in the test folder.