(driver, timeout=None)
| 153 | |
| 154 | |
| 155 | def 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 | |
| 171 | def raise_unable_to_load_jquery_exception(driver): |
no test coverage detected
searching dependent graphs…