facebook/php-webdriver — Issue #21: How is active() used?
Author: kazuo
Created: 2012-01-12 21:11:33+00:00
State: open

Unlike a number of other actions that need a proper strategy and locator, the "active" action doesn't require it.

The JsonWireProtocol shows the following for "active"

/session/:sessionId/element/active

It doesn't require an element :id. I tried sending an element ID just to see it would work somehow:

$foo = $session->element('id', 'username')->active();
var_dump($foo);

But NULL is returned

What is the proper way to use /session/:sessionId/element/active?