We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 803d8c1 commit 4251628Copy full SHA for 4251628
sample/Tests/test/test_windows_helpers.py
@@ -58,7 +58,7 @@ def login():
58
all_windows = driver.window_handles
59
60
print("Find the new window")
61
- new_window = [window for window in all_windows if window != driver.current_window_handle][0]
+ new_window = [window for window in all_windows if window != driver.current_window_handle][-1]
62
63
print("Switch to the new window")
64
driver.switch_to.window(new_window)
0 commit comments