Switching focus to a window handle via the driver throws an undefined error
Categories
(Core :: Widget: Cocoa, defect, P5)
Tracking
()
People
(Reporter: iamjohnnywang, Unassigned)
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36
Steps to reproduce:
Noticed this when our WebdriverIO (v4) tests run via Saucelabs suddenly started failing. Not sure how to reproduce outside the context of the testing framework (or what the underlying Selenium/protocol commands are), but this was experienced with the v80 of the Firefox driver:
- Run a test via WDIO that opens up a new popup window
- Get the window handle (via
browser.windowHandles())
COMMAND GET "/wd/hub/session/eb8c5ca47c8d4eb0aa3dbbb2780ca869/window_handles"
DATA {}
RESULT ["22","4294967300"]
- Try to focus on the window handle (via
browser.switchTab(popupWindowHandle))
calling ` started failing with
COMMAND POST "/wd/hub/session/eb8c5ca47c8d4eb0aa3dbbb2780ca869/window"
DATA {"name":"4294967300","handle":"4294967300"}
Actual results:
The switch/focus command fails with "Expected "handle" to be a string, got [object Undefined] undefined", even though a handle string is definitely being passed into the command.
Expected results:
The switch/focus command should work
Hi iamjohnnywang,
Thanks for your report.
I don't have the specific setup to test it on my end but I'll add this ticket to the Widget: cocoa component in the hope someone from their team can take a look.
Best,
Virginia
Updated•5 years ago
|
Description
•