php-webdriver
php-webdriver copied to clipboard
Allow getting window handle in W3C mode
The $session->window()->handle(); code had several issues:
- the URL queried for the window handle was
/session/{session id}/windowsession/{session id}/window - there was a PHP Notice, where a returned window handle (for me it was always a string) was treated as an array
Both issues are addressed in this PR.