CasperJS logo


Navigation scripting & testing for PhantomJS and SlimerJS
+ 1

What is CasperJS?

CasperJS is a browser navigation scripting & testing utility written in Javascript for PhantomJS or SlimerJS.
CasperJS is a tool in the Headless Browsers category of a tech stack.
CasperJS is an open source tool with 7.3K GitHub stars and 1K GitHub forks. Here鈥檚 a link to CasperJS's open source repository on GitHub

Who uses CasperJS?

9 companies reportedly use CasperJS in their tech stacks, including tools,, and funin.

38 developers on StackShare have stated that they use CasperJS.

CasperJS Integrations

Public Decisions about CasperJS

Here are some stack decisions, common use cases and reviews by companies and developers who chose CasperJS in their tech stack.

Tim Abbott
Tim Abbott
Founder at Zulip | 3 upvotes 239K views

We use CasperJS because we adopted it back in 2013 for JavaScript frontend testing. It was a really nice system back then compared to what else was out there; you had PhantomJS as a programmable browser that actually rendered CSS and everything, it was really fast (speed is a big downside of e.g. Selenium), and it was possible to make non-flaky frontend integration tests with it.

I wouldn't recommend it today, because PhantomJS is a basically dead project, and as a result, so is CasperJS. I expect we'll migrate to something else. We haven't in large part because 95% of our new tests are written with a simple Node.js-based unit testing framework we use that run 35K lines of unit tests covering most of our JS codebase in 3.6 seconds. And for the things where we want an integration test, CasperJS does work, and I think there's a good chance that waiting another year or two will result in our being able to switch to a much better option than what we'd get if we migrated now.

See more

CasperJS Alternatives & Comparisons

What are some alternatives to CasperJS?
PhantomJS ( is a headless WebKit scriptable with JavaScript. It is used by hundreds of developers and dozens of organizations for web-related development workflow.
Selenium automates browsers. That's it! What you do with that power is entirely up to you. Primarily, it is for automating web applications for testing purposes, but is certainly not limited to just that. Boring web-based administration tasks can (and should!) also be automated as well.
Puppeteer is a Node library which provides a high-level API to control headless Chrome over the DevTools Protocol. It can also be configured to use full (non-headless) Chrome.
Cypress is a front end automated testing application created for the modern web. Cypress is built on a new architecture and runs in the same run-loop as the application being tested. As a result Cypress provides better, faster, and more reliable testing for anything that runs in a browser. Cypress works on any front-end framework or website.
It allows you to manipulate a web page with an external Javascript script: opening a webpage, clicking on links, modifying the content... It is useful to do functional tests, page automation, network monitoring, screen capture etc.
See all alternatives

CasperJS's Followers
68 developers follow CasperJS to keep up with related blogs and decisions.
Rakesh Jha
Namthip Cola
Bryan Rasmussen
Javier Camilo
Giampaolo Fois
Bernd von Bernd und Bernd