selenium-javascript

A basic javascript project showcasing Selenium using page object modelling

Stars
2

Selenium Using Javascript

A sample javascript project for showcasing Selenium to automate browser testing

Pre-requisites

  • Firefox browser
  • Node.js version 12.x or greater

Running the tests

In the command-line:

  1. Use the command, npm install to install the dependencies. Note: This step is required only once to install the dependencies.

  2. Use the command, npm test to run the tests

Structure

  • 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