A sample javascript project for showcasing Selenium to automate browser testing
- Firefox browser
- Node.js version 12.x or greater
In the command-line:
-
Use the command,
npm install
to install the dependencies. Note: This step is required only once to install the dependencies. -
Use the command,
npm test
to run the tests
- Based on Page Object Model, the page objects and page functionality are put into the respective pages for modularity
- Selenium related functionality are also seperated and put into own directory
- Splitting the page functionality and Selenium functionality makes the tests easier to read and understand