Is it possible to use Selenium WebDriver to drive PhantomJS? Is it possible to use Selenium WebDriver to drive PhantomJS? selenium selenium

Is it possible to use Selenium WebDriver to drive PhantomJS?


PhantomJS now includes the GhostDriver project.

You are also suggested to use PhantomJS directly or with a convenience library such as CasperJS. CasperJS is specifically designed to make it easy to do sequential operations to web pages, perfect for many automation tasks.

Disclaimer: I am the author of PhantomJS.

Edit: As noted in Nick's answer, GhostDriver is now included in PhantomJS.


@Joseph, since the 1.8 release GhostDriver is included in the stable release of PhantomJS. Here is the exact release notes: http://phantomjs.org/release-1.8.html. You can simply start PhantomJS process to listen on some port, like this:

phantomjs --webdriver=PORT

Kudos to @detro and PhantomJS team for awesome work!