Skip to content

Commit 9ecd0c4

Browse files
committed
Add more time for "jQuery" to load if a method needs it
1 parent 5a6911c commit 9ecd0c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

seleniumbase/fixtures/js_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def activate_jquery(driver):
163163
pass
164164
jquery_js = constants.JQuery.MIN_JS
165165
add_js_link(driver, jquery_js)
166-
for x in range(22):
166+
for x in range(25):
167167
# jQuery needs a small amount of time to activate.
168168
try:
169169
driver.execute_script("jQuery('html');")
@@ -172,7 +172,7 @@ def activate_jquery(driver):
172172
time.sleep(0.1)
173173
try:
174174
add_js_link(driver, jquery_js)
175-
time.sleep(0.35)
175+
time.sleep(0.5)
176176
driver.execute_script("jQuery('head');")
177177
return
178178
except Exception:

0 commit comments

Comments
 (0)