Skip to content

sridharbandi/Selenium-NightwatchJS-Template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Selenium NightwatchJS Template with Page Object Model

How to use?

Create the Page Objects of your Web application under pageobjects package, call those Page Objects in Nightwatchjs tests under tests package (Sample Page Objects, testcase included in this template)

How to run?

To install the dependencies issue the below commands in project root directory

npm install

To run the tests issue the below command

npm test

By default it runs in Chrome browser, you can specify which browser to use as well

npm test -- --env firefox

Browsers added in this template are

  • chrome
  • firefox
  • edge
  • ie

Feel free to modify it to your own needs :)

Releases

No releases published

Packages

No packages published