Code Snippets

CasperJS Script - Automate Screenshot

For more information about CasperJS, click here. 

var casper = require('casper').create();

casper.start('http://appnovation.com/blog', function() {
    this.echo(this.getTitle());
    this.capture('blog-homepage.png')
}).viewport(1280,1024);

casper.run();
Resource Tags: