facebook/php-webdriver — pull request #192 by chaby1 (2014-12-14 20:36:02+00:00)
Title: fix switch to main document

Hi,

For a while, I didn't think about the library which didn't send the id parameter because it was working for Firefox, Chrome and a lot of other drivers.

However, some others required this parameter :
* https://code.google.com/p/chromedriver/issues/detail?id=981
* https://github.com/selendroid/selendroid/issues/664
* https://github.com/operasoftware/operachromiumdriver/issues/2

In fact, we must send a NULL parameter to fix it, just like the java client do :
https://code.google.com/p/selenium/source/browse/java/client/src/org/openqa/selenium/remote/RemoteWebDriver.java#886

and it is supported by the protocol :
https://code.google.com/p/selenium/wiki/JsonWireProtocol#/session/:sessionId/frame

With this new parameter, no regression has been detected for FF, Chrome, HTMLunit, PhantomJS, IE (11).
And it fix the issues above for other drivers.

Thanks