Nightwatchjs vs PhantomJS: What are the differences?
Nightwatchjs can be classified as a tool in the "Browser Testing" category, while PhantomJS is grouped under "Headless Browsers".
Some of the features offered by Nightwatchjs are:
On the other hand, PhantomJS provides the following key features:
- Multiplatform, available on major operating systems: Windows, Mac OS X, Linux, and other Unices.
- Pure headless (no X11) on Linux, ideal for continuous integration systems. Also runs on Amazon EC2, Heroku, and Iron.io.
Nightwatchjs 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 Nightwatchjs with 9.43K GitHub stars and 927 GitHub forks.
According to the StackShare community, PhantomJS has a broader approval, being mentioned in 77 company stacks & 47 developers stacks; compared to Nightwatchjs, which is listed in 16 company stacks and 5 developer stacks.
What is Nightwatchjs?
What is PhantomJS?
Need advice about which tool to choose?Ask the StackShare community!
Why do developers choose Nightwatchjs?
What are the cons of using Nightwatchjs?
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.
With this structure, we're able to combine the automation efforts of each team member into a centralized repository while also providing new relevant metrics to business owners.
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.