|
Literally it acts like any other WebKit-based web browser, except that nothing gets displayed to the screen (thus, the term headless).
In addition to that, PhantomJS can be controlled or scripted using its JavaScript API.
PhantomJS is an test tool for web-based applications.
This include site scraping, pages capture, SVG renderer, PDF converter and many other use cases.
PhantomJS is cross-platform, it can be compiled for Linux, Windows, FreeBSD, and Mac OS X.
PhantomJS is based on Qt. There are two implementations, using C++ and Python.
Here are some key features of "PhantomJS":
· DOM handling
· CSS selector
· JSON
· Canvas
· SVG support
Requirements:
· JavaScript enabled on client side
What's New in This Release: [ read full changelog ]
· Added support for passing arguments to WebPage's evaluate
· Added callbacks for JavaScript onConfirm and onAlert
· Added stack trace when error occurs
· Added initial support for cookies handling
· Added support for header footer when printing the page
· Added headers support in the loading request
· Added support to render the web page as base64-encoded string
· Added hooks for navigation event
· Added command-line option to show debug messages
· Added support for the zoom factor for web page rendering
· Added crash reporter for Mac OS X and Linux, based on Google Breakpad
· Added 'os' object to the system module
Via: PhantomJS 1.7.0
0 Comment:
Post a Comment