PhantomJS 1.8 Release Notes

PhantomJS 1.8, Blue Winter Rose, was released on December 21, 2012. It integrated Ghost Driver, an implementation of WebDriver Wire Protocol.

WebDriver support via Ghost Driver integration

Ghost Driver, a project by Ivan De Marino, is an implementation of WebDriver Wire Protocol. In this PhantomJS release, Ghost Driver functionalities have been fully integrated.

To launch PhantomJS in Remote WebDriver mode at the intended PORT number:

phantomjs --webdriver=PORT

The following example, written in Ruby, assumes PhantomJS WebDriver is running on port 9134. The script will load Google, submit a search for the term “PhantomJS” and print the page title of the search result page:

require "selenium-webdriver"
driver = Selenium::WebDriver.for(:remote, :url => "http://localhost:9134")
driver.navigate.to "http://google.com"
element = driver.find_element(:name, 'q')
element.send_keys "PhantomJS"
element.submit
puts driver.title
driver.quit

Bindings for your favourite programming language can be found in Selenium >= 2.27:

Language Binding Status
Java Available
C#/.Net Available
Python Available
Ruby Available
PHP Work in progress

NOTICE: Language bindings are provided by kind members of the Selenium community. Issues related to those should be reported to Selenium project. PhantomJS solely implements the Wire Protocol and it is not responsible for any/possible binding malfunctions.

More details can be found in this blog post. Also, make sure you check the documentation of Selenium WebDriver.

New features

Improvements

Fix in 1.8.1

Fixes in 1.8.2

Known Issues on Microsoft Windows

Back to all releases.