File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -157,10 +157,8 @@ def raise_unable_to_load_jquery_exception(driver):
157
157
158
158
159
159
def activate_jquery (driver ):
160
- """
161
- If "jQuery is not defined" on a website, use this method to activate it.
162
- This method is needed because jQuery is not always defined on web sites.
163
- """
160
+ """If "jQuery is not defined" on a website, use this method to activate it.
161
+ This method is needed because jQuery is not always defined on web sites."""
164
162
try :
165
163
# Let's first find out if jQuery is already defined.
166
164
driver .execute_script ("jQuery('html');" )
@@ -171,13 +169,13 @@ def activate_jquery(driver):
171
169
pass
172
170
jquery_js = constants .JQuery .MIN_JS
173
171
add_js_link (driver , jquery_js )
174
- for x in range (32 ):
172
+ for x in range (36 ):
175
173
# jQuery needs a small amount of time to activate.
176
174
try :
177
175
driver .execute_script ("jQuery('html');" )
178
176
return
179
177
except Exception :
180
- if x == 16 :
178
+ if x == 18 :
181
179
add_js_link (driver , jquery_js )
182
180
time .sleep (0.1 )
183
181
# Since jQuery still isn't activating, give up and raise an exception
You can’t perform that action at this time.
0 commit comments