operachromiumdriver
operachromiumdriver copied to clipboard
Severe bug in Opera driver: returns wrong window handles
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.