Stackmate generate screenshots of multiple pages against multiple browsers using BrowserStack Screenshot API.
You need a browserstack subscription to use these scripts
- clone this repo
- type
npm installto get the project dependencies - rename
conf.api.js.sampletoconf.api.jsand fill in your BrowserStack username and api key. - modify
conf.urlswith the url(s) you want to take screenshot of - (optional) modify
conf.browserswith the browsers you want to test against. (browserstack documentation)
to start generating screenshots from urls specified in conf.urls using the browser list defined in conf.browsers
node generate
then to serve all generated session and view your screenshot
node serve
and go to http://localhost:3000