Skip to content

Instantly share code, notes, and snippets.

@dommmel
Created January 8, 2013 10:00
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dommmel/4482599 to your computer and use it in GitHub Desktop.
Save dommmel/4482599 to your computer and use it in GitHub Desktop.
Script to take full page screenshots using phantomJs via CasperJs. Run via ```casperjs capture_screenshot.js```
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