Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/sridharbandi/selenium-nightwatchjs-template
- Owner: sridharbandi
- Created: 2018-05-25T14:49:38.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-24T17:30:36.000Z (almost 6 years ago)
- Last Synced: 2024-11-14T12:54:22.354Z (3 months ago)
- Topics: nightwatchjs, nodejs, page-object-model, selenium, selenium-webdriver
- Language: JavaScript
- Homepage:
- Size: 17.6 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 :)