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

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

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 :)