Skip to content

Commit fdec0a1

Browse files
committed
Update "wait_for_angularjs()" (skip alert-handling)
1 parent d11c633 commit fdec0a1

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
@@ -48,13 +48,6 @@ def execute_async_script(driver, script, timeout=settings.EXTREME_TIMEOUT):
4848

4949

5050
def wait_for_angularjs(driver, timeout=settings.LARGE_TIMEOUT, **kwargs):
51-
try:
52-
# If there's an alert, skip
53-
driver.switch_to.alert
54-
return
55-
except Exception:
56-
# If there's no alert, continue
57-
pass
5851
if not settings.WAIT_FOR_ANGULARJS:
5952
return
6053

0 commit comments

Comments
 (0)