https://github.com/sridharbandi/selenium-webdriverjs-mocha-template
Selenium WebdriverJS & Mocha Example
https://github.com/sridharbandi/selenium-webdriverjs-mocha-template
chai mocha nodejs page-object-model selenium selenium-webdriver webdriverjs
Last synced: 18 days ago
JSON representation
Selenium WebdriverJS & Mocha Example
- Host: GitHub
- URL: https://github.com/sridharbandi/selenium-webdriverjs-mocha-template
- Owner: sridharbandi
- Created: 2018-05-23T20:56:40.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-08-18T14:03:10.000Z (over 4 years ago)
- Last Synced: 2025-04-11T05:06:17.230Z (18 days ago)
- Topics: chai, mocha, nodejs, page-object-model, selenium, selenium-webdriver, webdriverjs
- Language: JavaScript
- Homepage:
- Size: 31.3 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Selenium WebdriverJS & Mocha Template with Page Object Model
### How to use?
Create the Page Objects of your Web application under **_pageobjects_** package, call those Page Objects in Webdriverjs 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
* opera
* ie> Feel free to modify it to your own needs :)