(FORK, works with unmodified Qt 5.3) Scriptable Headless WebKit
 
 
 
 
 
 
Go to file
Alessandro Portale 32701e9bba Avoid crash with post-exit page loading.
If the javascript calls phantom.exit(), and afterwards
phantom.open(), if may happen that the open() triggers a
loadFinished() signal happens after Phantom was destroyed.
Result: Crash in Phantom::finish().

Workaround: Disconnect from loadFinished() when exit() is
called.
2011-01-09 22:16:28 +01:00
examples direction.js: Fix the logic and simplify the extraction. 2011-01-02 10:39:50 -08:00
src Avoid crash with post-exit page loading. 2011-01-09 22:16:28 +01:00
LICENSE.BSD Long live PhantomJS! 2010-12-26 19:49:33 -08:00
README.md Slightly more verbose README. 2011-01-02 12:21:14 -08:00
phantomjs.pro Import the old, working prototype. 2010-12-26 20:15:19 -08:00

README.md

PhantomJS is a minimalistic, headless, WebKit-based JavaScript-driven tool.

It has native (and high performant) support for DOM handling, CSS selector, JSON, Canvas, and SVG.

PhantomJS runs on Linux, Windows, and Mac OS X. Refer to the build instructions for details.

See also quick start guide and more advanced examples which show various PhantomJS scripts, covering:

  • getting driving direction
  • showing weather forecast conditions
  • finding pizza in New York
  • looking up approximate location based on IP address
  • pulling the list of seasonal food
  • running regression tests from command line
  • producing PDF version of a Wikipedia article
  • rasterizing SVG to image

Do not forget to consult the concise API Reference.