Skip to content

Commit 9802fb8

Browse files
committed
Small update to "wait_for_ready_state_complete"
1 parent 1b899bb commit 9802fb8

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

seleniumbase/fixtures/js_utils.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,6 @@ def wait_for_ready_state_complete(driver, timeout=settings.EXTREME_TIMEOUT):
2424
stop_ms = start_ms + (timeout * 1000.0)
2525
for x in range(int(timeout * 10)):
2626
shared_utils.check_if_time_limit_exceeded()
27-
try:
28-
# If there's an alert, skip
29-
driver.switch_to.alert
30-
return
31-
except Exception:
32-
# If there's no alert, continue
33-
pass
3427
try:
3528
ready_state = driver.execute_script("return document.readyState")
3629
except WebDriverException:

0 commit comments

Comments
 (0)