Skip to content

Instantly share code, notes, and snippets.

@pparadis
Created November 4, 2014 01:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pparadis/60badd7a85c74adb778f to your computer and use it in GitHub Desktop.
Save pparadis/60badd7a85c74adb778f to your computer and use it in GitHub Desktop.
CasperJS
var casper = require('casper').create();
casper.start('http://casperjs.org/', function() {
this.echo(this.getTitle());
});
casper.thenOpen('http://phantomjs.org', function() {
this.echo(this.getTitle());
});
casper.run();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment