Skip to content
This repository

Navigation scripting & testing utility for PhantomJS and SlimerJS

Merge pull request #848 from franck34/master

Fix configureHttpAuth
latest commit e14544abfa
Nicolas Perriault authored April 24, 2014
Octocat-spinner-32 bin Merge pull request #774 from hexid/phantomjs2-require-bc April 06, 2014
Octocat-spinner-32 docs refs #891 - fixed docs for tester events April 23, 2014
Octocat-spinner-32 modules Merge pull request #848 from franck34/master April 24, 2014
Octocat-spinner-32 rpm Add improved RPM package build script. November 14, 2013
Octocat-spinner-32 samples fixed googlematch.js sample November 26, 2013
Octocat-spinner-32 src Using 2 arg overload of Path.Combine for .NET 3 March 10, 2014
Octocat-spinner-32 tests check javascriptEnabled status in the page April 18, 2014
Octocat-spinner-32 .gitattributes added gitattributes file November 07, 2013
Octocat-spinner-32 .gitignore added missing files - refs #624 September 13, 2013
Octocat-spinner-32 .gitmodules moved sphinx docs to master repository March 12, 2013
Octocat-spinner-32 .jshintignore Add engine directory to .jshintignore October 11, 2013
Octocat-spinner-32 .jshintrc Implemented weak equality for jslint locally September 11, 2013
Octocat-spinner-32 .travis.yml added SLimerJS 0.8.5 to the travis build matrix November 27, 2013
Octocat-spinner-32 bump 1.1-beta1 July 13, 2013
Octocat-spinner-32 enhanced September 26, 2012
Octocat-spinner-32 updated CONTRIBUTORS November 29, 2013
Octocat-spinner-32 added .md ext for root info files January 07, 2012
Octocat-spinner-32 Makefile Change order of dotNET travis tests to match python jobs December 16, 2013
Octocat-spinner-32 Update November 25, 2013
Octocat-spinner-32 casperjs.gemspec closes #335 - dropped support for phantomjs 1.6 (1.7 & 1.8 are both s… December 23, 2012
Octocat-spinner-32 package.json fixed version in package.json November 29, 2013


Important note: the master branch hosts the development version of CasperJS, which is now pretty stable and should be the right version to use if you ask me.

Use the 1.0 branch if you want to keep in sync with the stable old version, or use tagged versions.

Currently, available documentation is:

Travis-CI build status:

  • Build Statusmaster branch
  • 1.0 tests unfortunately have to be run manually using the casperjs selftest command

CasperJS is a navigation scripting & testing utility for PhantomJS and SlimerJS. 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 documentation website.

Subscribe to the project mailing-list

Follow the CasperJS project on twitter and Google+.

Show me some code!

First install CasperJS, we'll use 1.1 beta here.

Sample test to see if some dropdown can be opened:

casper.test.begin('a twitter bootstrap dropdown can be opened', 2, function(test) {
    casper.start('', function() {
        test.assertExists('#navbar-example');'#dropdowns .nav-pills .dropdown:last-of-type a.dropdown-toggle');
        this.waitUntilVisible('#dropdowns .nav-pills .open', function() {
            test.pass('Dropdown is open');
    }).run(function() {

Run the script:


Need help with getting CasperJS up and running? Got a time-consuming problem you want to get solved quickly?

Get CasperJS support on CodersClan.


Contributing code

Please read the 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.




Something went wrong with that request. Please try again.