Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sridharbandi/selenium-nightwatchjs-template

Selenium NightwatchJS Example Project
https://github.com/sridharbandi/selenium-nightwatchjs-template

nightwatchjs nodejs page-object-model selenium selenium-webdriver

Last synced: 23 days ago
JSON representation

Selenium NightwatchJS Example Project

Awesome Lists containing this project

README

        

## 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
```javascript
npm install
```
To run the tests issue the below command
```javascript
npm test
```
By default it runs in Chrome browser, you can specify which browser to use as well
```javascript
npm test -- --env firefox
```

Browsers added in this template are
* chrome
* firefox
* edge
* ie

> Feel free to modify it to your own needs :)