Skip to content

Instantly share code, notes, and snippets.

@tomz
Last active August 29, 2015 14:06
Show Gist options
  • Save tomz/f2962170ce56f1681091 to your computer and use it in GitHub Desktop.
Save tomz/f2962170ce56f1681091 to your computer and use it in GitHub Desktop.
var casper = require('casper').create();
var url = 'http://localhost:3000/#!/';
casper.start(url, function() {
var js = this.evaluate(function() {
return document;
});
this.echo(js.all[0].outerHTML);
});
casper.run();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment