var casper = require('casper').create();

casper.start('http://localhost:9292/', function() {
    this.echo(this.getTitle());
});

casper.run();

var casper = require('casper').create();

casper.start('http://localhost:9292/', function () {
  this.echo(this.evaluate(function () {
    return document.links.length // returns a NodeList containing HTMLAnchorElement(s)
  }));
});

casper.run();
Save some changes to Casper file
Save some changes to Casper file
