operachromiumdriver icon indicating copy to clipboard operation
operachromiumdriver copied to clipboard

Severe bug in Opera driver: returns wrong window handles

Open Elmue opened this issue 8 years ago • 0 comments

When the Opera driver is asked for the currently open windows (with the driver command "getWindowHandles") it should return one handle for each open browser window (or tab).

I have two windows open and the Opera driver returns FOUR window handles instead of two! How is this possible ? It happens because in one of the windows I have to two <iframe>'s.

To fix this bug you must check that the window ID belongs to a TOPLEVEL document and NOT return window ID's of <frame> or <iframe> documents.

Elmue avatar Jan 27 '16 23:01 Elmue