zulip/zephyr/tests/frontend/casperjs
Tim Abbott eadb2ea6d3 Update casperjs to 1.0.2.
(imported from commit 9e34b51c4588dce6419ea86024b2e8c06346a685)
2013-03-05 15:10:32 -05:00
..
batchbin Update casperjs to 1.0.2. 2013-03-05 15:10:32 -05:00
bin Update casperjs to 1.0.2. 2013-03-05 15:10:32 -05:00
modules Update casperjs to 1.0.2. 2013-03-05 15:10:32 -05:00
rpm Update casperjs to 1.0.2. 2013-03-05 15:10:32 -05:00
rubybin Update casperjs to 1.0.2. 2013-03-05 15:10:32 -05:00
samples Update casperjs to 1.0.2. 2013-03-05 15:10:32 -05:00
tests Update casperjs to 1.0.2. 2013-03-05 15:10:32 -05:00
.gitignore Import CasperJS 1.0.0-RC4-0-g8c798c7 2012-11-13 10:59:02 -05:00
.gitmodules Import CasperJS 1.0.0-RC4-0-g8c798c7 2012-11-13 10:59:02 -05:00
.jshintconfig Update casperjs to 1.0.2. 2013-03-05 15:10:32 -05:00
.jshintignore Import CasperJS 1.0.0-RC4-0-g8c798c7 2012-11-13 10:59:02 -05:00
.travis.yml Update casperjs to 1.0.2. 2013-03-05 15:10:32 -05:00
CHANGELOG.md Update casperjs to 1.0.2. 2013-03-05 15:10:32 -05:00
CONTRIBUTING.md Import CasperJS 1.0.0-RC4-0-g8c798c7 2012-11-13 10:59:02 -05:00
CONTRIBUTORS.md Update casperjs to 1.0.2. 2013-03-05 15:10:32 -05:00
LICENSE.md Import CasperJS 1.0.0-RC4-0-g8c798c7 2012-11-13 10:59:02 -05:00
README.md Import CasperJS 1.0.0-RC4-0-g8c798c7 2012-11-13 10:59:02 -05:00
casperjs.gemspec Update casperjs to 1.0.2. 2013-03-05 15:10:32 -05:00
package.json Update casperjs to 1.0.2. 2013-03-05 15:10:32 -05:00

README.md

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.