What is PhantomJS?
PhantomJS is a tool in the Headless Browsers category of a tech stack.
PhantomJS is an open source tool with 28.6K GitHub stars and 5.8K GitHub forks. Here’s a link to PhantomJS's open source repository on GitHub
Who uses PhantomJS?
111 companies reportedly use PhantomJS in their tech stacks, including tools, Ocado Technology, and Stack Scanner.
280 developers on StackShare have stated that they use PhantomJS.
StackStorm, CasperJS, Trails, Poltergeist, and bip.io are some of the popular tools that integrate with PhantomJS. Here's a list of all 5 tools that integrate with PhantomJS.
Pros of PhantomJS
Scriptable web browser
Depends on QT
No ECMAScript 6
Oct 22 2015 at 8:05AM
- 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.
- Easy to install: Download, unpack, and start having fun in just 5 minutes.
PhantomJS Alternatives & Comparisons
What are some alternatives to PhantomJS?
See all alternatives
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.
Protractor is an end-to-end test framework for Angular and AngularJS applications. Protractor runs tests against your application running in a real browser, interacting with it as a user would.
wkhtmltopdf and wkhtmltoimage are command line tools to render HTML into PDF and various image formats using the QT Webkit rendering engine. These run entirely "headless" and do not require a display or display service.