Skip to content
This repository has been archived by the owner on Jun 19, 2020. It is now read-only.
/ casperjs Public archive

CasperJS is no longer actively maintained. Navigation scripting and testing utility for PhantomJS and SlimerJS

License

Notifications You must be signed in to change notification settings

casperjs/casperjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d033da6 · Nov 17, 2013
Nov 14, 2012
Jul 13, 2013
Apr 22, 2013
Dec 24, 2012
Dec 22, 2012
Apr 6, 2013
Mar 29, 2013
Jan 11, 2012
Apr 20, 2012
Nov 18, 2012
Oct 27, 2012
Nov 17, 2013
Sep 26, 2012
Dec 18, 2012
Jan 7, 2012
Oct 19, 2012
Dec 23, 2012
Nov 17, 2013

Repository files navigation

CasperJS Build Status

CasperJS is a navigation scripting & testing utility for PhantomJS. It eases the process of defining a full navigation scenario and provides useful high-level functions, methods & syntaxic sugar for doing common tasks such as:

Browse the sample examples repository. Don't hesitate to pull request for any cool example of yours as well!

Read the full documentation on casperjs dedicated website.

Subscribe to the project mailing-list

Follow the CasperJS project on twitter and Google+.

Show me some code!

Sample test to see if some dropdown can be opened:

casper.start('http://twitter.github.com/bootstrap/javascript.html#dropdowns', function() {
    this.test.assertExists('#navbar-example');
    this.click('#dropdowns .nav-pills .dropdown:last-of-type a.dropdown-toggle');
    this.waitUntilVisible('#dropdowns .nav-pills .open', function() {
        this.test.pass('Dropdown is open');
    });
});

casper.run(function() {
    this.test.done();
});

Run the script:

Contributing

Contributing code

Please read the CONTRIBUTING.md file contents.

Contributing documentation

CasperJS's documentation is written using the Markdown format, and hosted on Github thanks to the Github Pages Feature.

To view the source files on github, head to the gh-pages branch, and check the documentation's README for further instructions.