- PhantomJS is a Headless Webkit with JavaScript API.
- Created by Ariya Hidayat
- PhantomJS is not a testing framework, used to launch tests
- It has fast & native support for various Web Standards: DOM handling, CSS selector, JSON, canvas and SVG.
- GhostDriver is a Webdriver wire protocol in simple JS for PhantomJS.
- PhantomJS is used for Headless Testing of Web Applications that comes with in-built GhostDriver, rendered web pages never displayed
- Can be used with different test frameworks Jasmin, Capayra , Robot Framework etc..
- Ideal for CI systems , AmazonEC2,...
- Very easy to install
Download from this link
Unzip zip file
Set path from Environment Variables
Write some code js code
From command line go to js file directory