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

https://github.com/sridharbandi/puppeteer-mocha-template

Puppeteer & Mocha Example
https://github.com/sridharbandi/puppeteer-mocha-template

es6 mocha nodejs page-object-model puppeteer

Last synced: 26 days ago
JSON representation

Puppeteer & Mocha Example

Awesome Lists containing this project

README

        

## Puppeteer Mocha Template with Page Object Model
>[Puppeteer](https://github.com/GoogleChrome/puppeteer) is a Node library to control Headless Chrome or Chromium

### How to use?
Create the Page Objects of your Web application under **_pageobjects_** package, call those Page Objects in 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
```
Below are the few other Puppeteer templates
1. [Puppeteer Jasmine Template](https://github.com/sridharbandi/Non-Selenium-Javascript-Getting-Started-Examples/tree/master/Puppeteer-Jasmine-Template)
2. [Puppeteer Cucumber Template](https://github.com/sridharbandi/Non-Selenium-Javascript-Getting-Started-Examples/tree/master/Puppeteer-Cucumber-Template)

Other templates you might be interested in
[Non Selenium Javascript Templates](https://github.com/sridharbandi/Non-Selenium-Javascript-Getting-Started-Examples),
[Selenium Javascript Templates](https://github.com/sridharbandi/Selenium-Javascript-Getting-Started-Examples)
> Feel free to modify it to your own needs :)