CasperJS vs PhantomJS: What are the differences?
CasperJS and PhantomJS belong to "Headless Browsers" category of the tech stack.
CasperJS and PhantomJS are both open source tools. It seems that PhantomJS with 26.9K GitHub stars and 5.7K forks on GitHub has more adoption than CasperJS with 7.3K GitHub stars and 1.06K GitHub forks.
According to the StackShare community, PhantomJS has a broader approval, being mentioned in 77 company stacks & 47 developers stacks; compared to CasperJS, which is listed in 7 company stacks and 7 developer stacks.
What is CasperJS?
What is PhantomJS?
Need advice about which tool to choose?Ask the StackShare community!
Why do developers choose CasperJS?
What are the cons of using CasperJS?
What are the cons of using PhantomJS?
Sign up to get full access to all the companiesMake informed product decisions
Sign up to get full access to all the tool integrationsMake informed product decisions
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.
We run PhantomJS as part of the CircleCI testing, comparing against other branches to ensure changes are limited to their intended scope.
Headless browsing, headless chrome is good too, this is not supported anymore.