Created
July 23, 2017 20:55
-
-
Save wahengchang/56c44ac901907ab075384185dcf18591 to your computer and use it in GitHub Desktop.
casperjs example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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