Skip to content

Instantly share code, notes, and snippets.

@carlosipe
Forked from dommmel/capture_screenshot.js
Last active August 29, 2015 14:21
Show Gist options
  • Save carlosipe/24c6f732099010ccfda3 to your computer and use it in GitHub Desktop.
Save carlosipe/24c6f732099010ccfda3 to your computer and use it in GitHub Desktop.
var casper = require('casper').create({
viewportSize: {width: 950, height: 950}
});
casper.start('http://www.google.com/', function() {
this.captureSelector('/tmp/pp.png', 'body');
});
casper.run();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment