nightmare-screenshot-selector
A Nightmare plugin. https://github.com/segmentio/nightmare
A Nightmare plugin to easily take screenshots.
Install
$ npm install --save nightmare-screenshot-selector
Usage
const Nightmare = ;const screenshotSelector = ;const fs = Nightmareaction'screenshotSelector' screenshotSelector var nightmare = nightmare // get the image in a buffer nightmare // create directly a file
Test
You just have to clone the repo and run
$ npm test