Skip to content

Commit 438ea23

Browse files
nattb8ImmutableJeffrey
authored andcommitted
chore: fix merge conflicts
1 parent 963ee3b commit 438ea23

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

sample/Tests/test/test_windows_helpers.py

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -56,40 +56,15 @@ def login():
5656

5757
# Get all window handles
5858
all_windows = driver.window_handles
59-
<<<<<<< HEAD
60-
61-
print(f"Found {len(all_windows)} new windows to check: {all_windows}")
62-
63-
# Find the window with the expected element
64-
=======
6559

6660
print(f"Found {len(all_windows)} new windows to check: {all_windows}")
6761

6862
# Find the window with email input
69-
>>>>>>> 8cb65d08 (test: fix windows login tab)
7063
target_window = None
7164
for window in all_windows:
7265
try:
7366
print(f"Checking window: {window}")
7467
driver.switch_to.window(window)
75-
<<<<<<< HEAD
76-
77-
if use_pkce:
78-
driver.find_element(By.ID, ':r1:')
79-
target_window = window
80-
print(f"Found email input in window: {window}")
81-
else:
82-
driver.find_element(By.XPATH, "//button[span[text()='Continue']]")
83-
target_window = window
84-
print(f"Found continue button in window: {window}")
85-
86-
break
87-
except:
88-
expected_element = "Email input" if use_pkce else "Continue button"
89-
print(f"{expected_element} not found in window: {window}, trying next...")
90-
continue
91-
92-
=======
9368
driver.find_element(By.ID, ':r1:')
9469
target_window = window
9570
print(f"Found email input in window: {window}")
@@ -98,16 +73,11 @@ def login():
9873
print(f"Email input not found in window: {window}, trying next...")
9974
continue
10075

101-
>>>>>>> 8cb65d08 (test: fix windows login tab)
10276
if not target_window:
10377
print("Could not find email input field in any window!")
10478
driver.quit()
10579
return
106-
<<<<<<< HEAD
107-
108-
=======
10980

110-
>>>>>>> 8cb65d08 (test: fix windows login tab)
11181
print("Switch to the target window")
11282
driver.switch_to.window(target_window)
11383

0 commit comments

Comments
 (0)