Product
Introducing Dashboard Analytics
We're introducing a new Analytics feature in the Socket dashboard so you can view changes in your organization's and repositories' alerts over time.
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:
- hosted on docs.casperjs.org for the development branch
- hosted on casperjs.org for the 1.0 branch
Travis-CI build status:
master
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+.
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('http://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
Need help with getting CasperJS up and running? Got a time-consuming problem you want to get solved quickly?
Get CasperJS support on CodersClan.
Please read the CONTRIBUTING.md file contents.
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.
MIT
FAQs
A navigation scripting & testing utility for PhantomJS and SlimerJS
The npm package casperjs receives a total of 2,193 weekly downloads. As such, casperjs popularity was classified as popular.
We found that casperjs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
We're introducing a new Analytics feature in the Socket dashboard so you can view changes in your organization's and repositories' alerts over time.
Security News
A new OpenSSF report uncovers critical gaps in secure software training, with 75% of new developers unfamiliar with secure practices, highlighting urgent educational needs.
Security News
The 2023 Python Developers Survey reveals key trends in packaging, web frameworks, and developer demographics, highlighting a shift toward innovative tools as the Python community diversifies and grows among less experienced developers.