Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Phantomjs in Facebook PHP webdriver
Use phantomjs. Start it:
$ phantomjs --webdriver=
$host = '';
$capabilities = array(
WebDriverCapabilityType::BROWSER_NAME => 'phantomjs',
'' => 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:25.0) Gecko/20100101 Firefox/25.0',
$driver = RemoteWebDriver::create($host, $capabilities, 5000);
$window = new WebDriverDimension(1024, 768);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment