facebook/php-webdriver — Issue #19: Retrieving capabilities
Author: kazuo
Created: 2012-01-06 17:14:40+00:00
State: open

I wanted to make sure I'm retrieving capabilities properly:

$wd = new WebDriver('http://localhost:4444/wd/hub');
$session = $wd->session('firefox', array('acceptSslCerts' => true));
$capabilities = $session->capabilities();
var_dump($capabilities);

When I do the following above, I get NULL in $capabilities. My scripts are running fine with the exception of not retrieving capabilities. (I wanted to check if session is capable of taking screen shots).

Am I reading the JsonWireProtocol documentation incorrectly on setting/retrieving capabilities?