Add more time for "jQuery" to load if a method needs it
This commit is contained in:
parent
5a6911ce02
commit
9ecd0c46ec
|
@ -163,7 +163,7 @@ def activate_jquery(driver):
|
||||||
pass
|
pass
|
||||||
jquery_js = constants.JQuery.MIN_JS
|
jquery_js = constants.JQuery.MIN_JS
|
||||||
add_js_link(driver, jquery_js)
|
add_js_link(driver, jquery_js)
|
||||||
for x in range(22):
|
for x in range(25):
|
||||||
# jQuery needs a small amount of time to activate.
|
# jQuery needs a small amount of time to activate.
|
||||||
try:
|
try:
|
||||||
driver.execute_script("jQuery('html');")
|
driver.execute_script("jQuery('html');")
|
||||||
|
@ -172,7 +172,7 @@ def activate_jquery(driver):
|
||||||
time.sleep(0.1)
|
time.sleep(0.1)
|
||||||
try:
|
try:
|
||||||
add_js_link(driver, jquery_js)
|
add_js_link(driver, jquery_js)
|
||||||
time.sleep(0.35)
|
time.sleep(0.5)
|
||||||
driver.execute_script("jQuery('head');")
|
driver.execute_script("jQuery('head');")
|
||||||
return
|
return
|
||||||
except Exception:
|
except Exception:
|
||||||
|
|
Loading…
Reference in New Issue