Skip to content

Commit 4251628

Browse files
committed
test: fix windows login tab
1 parent 803d8c1 commit 4251628

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sample/Tests/test/test_windows_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def login():
5858
all_windows = driver.window_handles
5959

6060
print("Find the new window")
61-
new_window = [window for window in all_windows if window != driver.current_window_handle][0]
61+
new_window = [window for window in all_windows if window != driver.current_window_handle][-1]
6262

6363
print("Switch to the new window")
6464
driver.switch_to.window(new_window)

0 commit comments

Comments
 (0)