instaclick / php-webdriver

W3C and Selenium 2 webdriver "thin client" for php 5.3+ and namespaces.
Other
436 stars 62 forks source link

Allow getting window handle in W3C mode #136

Open aik099 opened 6 months ago

aik099 commented 6 months ago

The $session->window()->handle(); code had several issues:

  1. the URL queried for the window handle was /session/{session id}/windowsession/{session id}/window
  2. 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.

aik099 commented 4 months ago

@robocoder , pleas review.

aik099 commented 2 months ago

@robocoder , please review.