You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 19, 2020. It is now read-only.
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. Users interested in a pretty stable, recent version working with PhantomJS 2.0 and newer should choose the packaged 1.1.0 and following releases.
it is only recommended if you need to keep old production tests running that could do with the now unmaintained PhantomJS 1.9
1.0 tests unfortunately have to be run manually using the casperjs selftest command
Note that all versions up to and including 1.1-beta3 do not support PhantomJS 2.0 and newer.
The complete documentation for the current releases is hosted on docs.casperjs.org.
CasperJS is a navigation scripting & testing utility for PhantomJS
and SlimerJS (still experimental).
It eases the process of defining a full navigation
scenario and provides useful high-level functions, methods & syntactic sugar for doing common
tasks such as:
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('https://getbootstrap.com/2.3.2/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:
Support
Help request. If you're stuck using CasperJS and don't understand how to achieve something, please ask on the mailing-list first. If the discussion reveals that you have found a real issue that might need a change within CasperJS, file an issue.
Filing issues. It takes a lot of time to review, validate, and de-duplicate filed issues. This time could be spent better on actually improving on CasperJS. Filing an issue might be a helpful contribution, but we expect you to read our CONTRIBUTING.md guidelines first.
Professional Support. Need help with getting CasperJS up and running? Got a time-consuming problem you want to get solved quickly?