Skip to content

Instantly share code, notes, and snippets.

@dannyfabricant
Last active March 3, 2016 18:46
Show Gist options
  • Save dannyfabricant/e1c74881d0f2ffdc9669 to your computer and use it in GitHub Desktop.
Save dannyfabricant/e1c74881d0f2ffdc9669 to your computer and use it in GitHub Desktop.
var casper = require('casper').create({
verbose: true,
logLevel: 'debug'
});
casper.start('https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=9M7FFM2DP5Q9J', function(){
console.log('casper started');
});
casper.wait(5000, function(){
console.log('waiting for pages to load');
});
casper.then(function() {
this.captureSelector('body.png', 'body');
});
casper.run();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment