MCPcopy Create free account
hub / github.com/seleniumbase/SeleniumBase / wait_for_jquery_active

Function wait_for_jquery_active

seleniumbase/fixtures/js_utils.py:155–168  ·  view source on GitHub ↗
(driver, timeout=None)

Source from the content-addressed store, hash-verified

153
154
155def wait_for_jquery_active(driver, timeout=None):
156 if not timeout:
157 timeout = 2
158 else:
159 timeout = int(timeout * 10.0)
160 for x in range(timeout):
161 # jQuery needs a small amount of time to activate.
162 try:
163 execute_script(driver, "jQuery('html');")
164 wait_for_ready_state_complete(driver)
165 wait_for_angularjs(driver)
166 return
167 except Exception:
168 time.sleep(0.1)
169
170
171def raise_unable_to_load_jquery_exception(driver):

Callers 3

activate_jquery_confirmFunction · 0.85
activate_html_inspectorFunction · 0.85
activate_messengerFunction · 0.85

Calls 4

execute_scriptFunction · 0.85
wait_for_angularjsFunction · 0.85
sleepMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…