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
- Host: GitHub
- URL: https://github.com/sridharbandi/puppeteer-mocha-template
- Owner: sridharbandi
- Created: 2018-05-29T22:29:07.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-04-17T16:55:40.000Z (about 5 years ago)
- Last Synced: 2025-04-11T05:09:43.417Z (26 days ago)
- Topics: es6, mocha, nodejs, page-object-model, puppeteer
- Language: JavaScript
- Homepage:
- Size: 16.6 KB
- Stars: 3
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 :)