Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save wahengchang/56c44ac901907ab075384185dcf18591 to your computer and use it in GitHub Desktop.
Save wahengchang/56c44ac901907ab075384185dcf18591 to your computer and use it in GitHub Desktop.
casperjs example
var casper = require('casper').create();
casper.start('http://casperjs.org/');
casper.then(function() {
this.echo('First Page: ' + this.getTitle());
});
casper.thenOpen('http://phantomjs.org', function() {
this.echo('Second Page: ' + this.getTitle());
});
casper.run();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment