Created
May 6, 2016 22:33
-
-
Save AlexanderKozhevin/5bb2a3d5f7e45f0a7beb42ffc96118d9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Nightmare = require('nightmare'); | |
var Screenshot = require('nightmare-screenshot'); | |
var nightmare = new Nightmare(); | |
nightmare.goto('url'); | |
nightmare.use(Screenshot.screenshotSelector('element.png', 'img[id="yw0"]')); | |
nightmare.run(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment