Skip to content

Instantly share code, notes, and snippets.

@ay13
Created May 12, 2017 20:57
Show Gist options
  • Save ay13/8afe8fbb35ac22a3b99c1b6e417bba89 to your computer and use it in GitHub Desktop.
Save ay13/8afe8fbb35ac22a3b99c1b6e417bba89 to your computer and use it in GitHub Desktop.
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