Skip to content

Commit 19f6f4e

Browse files
committed
Set maximum time for activating jQuery to be settings.MINI_TIMEOUT
1 parent 5c293a9 commit 19f6f4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

seleniumbase/fixtures/base_case.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -698,8 +698,8 @@ def activate_jquery(self):
698698
'''script.src = "http://code.jquery.com/jquery-3.2.1.min.js"; '''
699699
'''document.getElementsByTagName("head")[0]'''
700700
'''.appendChild(script);''')
701-
for x in range(30):
702-
# jQuery needs a small amount of time to activate. (At most 3s)
701+
for x in range(int(settings.MINI_TIMEOUT * 10.0)):
702+
# jQuery needs a small amount of time to activate.
703703
try:
704704
self.execute_script("jQuery('html')")
705705
return

0 commit comments

Comments
 (0)