Skip to content

Instantly share code, notes, and snippets.

@YusukeIwaki
Created November 6, 2015 01:19
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 YusukeIwaki/4fb7b6593a0f122afa71 to your computer and use it in GitHub Desktop.
Save YusukeIwaki/4fb7b6593a0f122afa71 to your computer and use it in GitHub Desktop.
var casper = require('casper').create();
casper.start('http://yahoo.co.jp/');
casper.then(function() {
var location = casper.evaluate(function(){
return location.href;
});
console.log("location=",location);
})
casper.run();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment