Skip to content

Commit 3c0ecd2

Browse files
committed
Add more time for the "jConfirm" dialog box library to load
1 parent 6d8187a commit 3c0ecd2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

seleniumbase/fixtures/js_utils.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,8 +607,11 @@ def activate_jquery_confirm(driver):
607607
add_css_link(driver, jq_confirm_css)
608608
add_js_link(driver, jq_confirm_js)
609609

610-
for x in range(25):
610+
for x in range(28):
611611
# jQuery-Confirm needs a small amount of time to load & activate.
612+
if x == 14:
613+
add_css_link(driver, jq_confirm_css)
614+
add_js_link(driver, jq_confirm_js)
612615
try:
613616
driver.execute_script("jconfirm")
614617
wait_for_ready_state_complete(driver)

0 commit comments

Comments
 (0)