You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[test] fix for random orders of devtools in window_handles
DevTools window opened at start may appear before or after the
app window in `driver.window_handles`. In versions before nw19,
the order of handles is deterministic. This new behavior causes
webdriver pointing to devtools window initially sometimes.
Therefore all following testing operations will fail of cause.
The patch refactored `switch_to_devtools` and added `switch_to_app`
helpers. When test starts, invoke `switch_to_app` to make sure
webdriver is working on the app window. And use `switch_to_devtools`
without `devtools_window` argument to make it iterate exisiting
window handles until found a devtools window and switch to it.
tests affected:
* issue3780-jailed-elements
* issue3780-jailed
* issue3835-inspect-crash
* issue4007-reload-lost-app-window
* issue4121-inpect-node-crash
* issue4269-click-link-crash
* react-devtools-extension
0 commit comments