(FORK, works with unmodified Qt 5.3) Scriptable Headless WebKit
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Vitaliy Filippov 2c0316f07d always use fontconfig 8 years ago
deploy Vagrant setup: Don't clone PhantomJS into Git build directory. 10 years ago
examples run-jasmine example: Ensure exit code is always returned. 9 years ago
rpm Add missing RPM spec file names; update changelog. 9 years ago
src always use fontconfig 8 years ago
test Port more tests from webpage-spec. 8 years ago
tools Remove misc references to CoffeeScript. 9 years ago
.gitignore Update .gitignore for Qt 5.3. 9 years ago
.travis.yml Travis CI: Get more dependencies for building Qt 5. 9 years ago
CONTRIBUTING.md CONTRIBUTING.md: convenient => confident 10 years ago
ChangeLog Version 2.0.0: initial cut at the ChangeLog. 8 years ago
LICENSE.BSD Long live PhantomJS! 12 years ago
README.md Issue #12897: README is updated with 2.0 info. 8 years ago
build.cmd Add build script for Windows 9 years ago
build.sh Make qphantom platform plugin static and adjust build scripts 8 years ago
phantomjs.pro Make qphantom platform plugin static and adjust build scripts 8 years ago
third-party.txt Remove GIF format for screen capture export (render). 9 years ago


PhantomJS - Scriptable Headless WebKit

PhantomJS (www.phantomjs.org) is a headless WebKit scriptable with JavaScript. It is used by hundreds of developers and dozens of organizations for web-related development workflow.

The latest stable release is version 2.0.

Note: Please do not create a GitHub pull request without reading the Contribution Guide first. Failure to do so may result in the rejection of the pull request.

Use Cases

  • Headless web testing. Lightning-fast testing without the browser is now possible! Various test frameworks such as Jasmine, Capybara, QUnit, Mocha, WebDriver, YUI Test, BusterJS, FuncUnit, Robot Framework, and many others are supported.
  • Page automation. Access and manipulate web pages with the standard DOM API, or with usual libraries like jQuery.
  • Screen capture. Programmatically capture web contents, including CSS, SVG and Canvas. Build server-side web graphics apps, from a screenshot service to a vector chart rasterizer.
  • Network monitoring. Automate performance analysis, track page loading and export as standard HAR format.


  • Multiplatform, available on major operating systems: Windows, Mac OS X, Linux, and other Unices.
  • Fast and native implementation of web standards: DOM, CSS, JavaScript, Canvas, and SVG. No emulation!
  • 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 needs not be used only as a stand-alone tool. Check also some excellent related projects:

  • CasperJS enables easy navigation scripting and common high-level testing.
  • Poltergeist allows running Capybara tests headlessly.
  • Guard::Jasmine automatically tests Jasmine specs on Rails when files are modified.
  • GhostDriver complements Selenium tests with a PhantomJS WebDriver implementation.
  • PhantomRobot runs Robot Framework acceptance tests in the background via PhantomJS.
  • Mocha-PhantomJS run Mocha tests using PhantomJS.

and many others related projects.


PhantomJS is free software/open source, and is distributed under the BSD license. It contains third-party code, see the included third-party.txt file for the license information on third-party code.

PhantomJS is created and maintained by Ariya Hidayat (Twitter: @ariyahidayat), with the help of many contributors. Follow the official Twitter stream @PhantomJS to get the frequent development updates.