casperjs

Getting started with casperjs

Remarks#

This section provides an overview of what casperjs is, and why a developer might want to use it.

It should also mention any large subjects within casperjs, and link out to the related topics. Since the Documentation for casperjs is new, you may need to create initial versions of those related topics.

Installation or Setup

Detailed instructions on getting casperjs set up or installed.

First program to getting started

var casper = require('casper').create();
casper.start('https://casperjs.org/');

casper.then(function() {
    this.echo('First Page: ' + this.getTitle());
});

casper.thenOpen('https://phantomjs.org', function() {
    this.echo('Second Page: ' + this.getTitle());
});

casper.run();

This modified text is an extract of the original Stack Overflow Documentation created by the contributors and released under CC BY-SA 3.0 This website is not affiliated with Stack Overflow