Skip to content

Navigation scripting & testing utility for PhantomJS

License

Notifications You must be signed in to change notification settings

zhangjunah/casperjs

This branch is 936 commits behind casperjs/casperjs:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Jun 2, 2013
e664bdd · Jun 2, 2013
Nov 14, 2012
Jun 2, 2013
May 12, 2013
May 27, 2013
Dec 24, 2012
May 4, 2013
May 23, 2013
May 27, 2013
Mar 12, 2013
Mar 12, 2013
May 9, 2013
May 13, 2013
May 13, 2013
May 12, 2013
Sep 26, 2012
May 9, 2013
Jan 7, 2012
May 13, 2013
Jan 20, 2013
Dec 23, 2012
Mar 5, 2013

Repository files navigation

CasperJS

Important note: the master branch hosts the development version of CasperJS, and may be rather instable from time to time. Use the 1.0 branch if you want to keep in sync with the stable version, or use tagged versions.

Currently, available documentation is:

Travis-CI build statuses:

  • Build Status 1.0 branch
  • Build Status master branch

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.test.begin('a twitter bootsrap dropdown can be opened', 2, function(test) {
    casper.start('http://twitter.github.com/bootstrap/javascript.html#dropdowns', function() {
        test.assertExists('#navbar-example');
        this.click('#dropdowns .nav-pills .dropdown:last-of-type a.dropdown-toggle');
        this.waitUntilVisible('#dropdowns .nav-pills .open', function() {
            test.pass('Dropdown is open');
        });
    }).run(function() {
        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.

About

Navigation scripting & testing utility for PhantomJS

Resources

License

Stars

Watchers

Forks

Packages

No packages published