https://github.com/willi-dev/puppeteer-screenshot-test
script test for take screen shot at different viewport
https://github.com/willi-dev/puppeteer-screenshot-test
Last synced: about 2 months ago
JSON representation
script test for take screen shot at different viewport
- Host: GitHub
- URL: https://github.com/willi-dev/puppeteer-screenshot-test
- Owner: willi-dev
- Created: 2019-04-10T03:35:23.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-10T05:28:37.000Z (about 7 years ago)
- Last Synced: 2025-12-04T20:56:09.275Z (6 months ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# testing screenshot using puppeteer
## setup
``` bash
# cloning project
$ git clone git@github.com:willi-dev/puppeteer-screenshot-test.git
# npm install
$ npm install
```
## setup your base url and endpoint url
open test.js
```
...
const appTest = {
baseURL: 'your url',
listPages: [
{
name: 'your page name for file name',
url: 'example endpoint' // example: '/contact'
}
]
}
...
```
## take screenshot
``` bash
# run your screenshot test
$ node test.js
```