Document directory
- Test an unbounded website
- Webpage screenshots
- Page Automation
- Network Monitoring
- Source code
- Document
- API
- Example
- FAQ
Complete web Stack
No browser required
PhantomJS is an unbounded WebKit browser engine with supporting JavaScript APIs. It supports various web standard technologies:
DOM processing, CSS selector, JSON, Canvas, and SVG.
The author of PhantomJS is Ariya Hidayat.
Download v1.7 and start using
Simple Javascript exampleConsole. 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 ();});
Communication:
- View release logs
- Join email discussion group
- Submit bug
PhantomJS is the best solution for the following tasks. It is tested on an unbounded website.
Perform functional tests on the framework, such as Jasmine, QUnit, Mocha, Capybara, WebDriver, and others. For more information, see
Webpage screenshots
You can also perform operations on SVG and Canvas. Create a website thumbnail preview.
Page Automation
Use standard DOM APIs to access and manipulate page content. You can also use familiar frameworks such as jQuery.
View More
Network Monitoring
Load monitoring pages and export statistical results to standard HAR files. Use YSlow and Jenkins for automatic performance analysis. View More
PhantomJS is a testing tool for many open-source projects:
Modernizr,
CodeMirror,
Ember. js,
YUI3,
There are more.
Copyright 2010-2012 Ariya Hidayat-Website Design: Maurice Svay