PhantomJS is a headless WebKit scriptable with a JavaScript API.
It has fast and native support for various web standards:
DOM handling, CSS selector, JSON, Canvas, and SVG.
Simple Javascript example console.log('Loading a web page'); var page = require('webpage').create(); var url = 'http://www.phantomjs.org/'; page.open(url, function (status) { //Page is loaded! phantom.exit(); });
Run functional tests with frameworks such as Jasmine, QUnit, Mocha, Capybara, WebDriver, and many others. Learn more
Programmatically capture web contents, including SVG and Canvas. Create web site screenshots with thumbnail preview. Learn more
Access and manipulate webpages
with the standard DOM API, or with
usual libraries like jQuery.
Learn more
Monitor page loading and export as standard HAR files. Automate performance analysis using YSlow and Jenkins. Learn more