(driver, url)
| 553 | |
| 554 | |
| 555 | def uc_open(driver, url): |
| 556 | url = shared_utils.fix_url_as_needed(url) |
| 557 | if __is_cdp_swap_needed(driver): |
| 558 | driver.cdp.get(url) |
| 559 | time.sleep(0.3) |
| 560 | return |
| 561 | if (url.startswith("http:") or url.startswith("https:")): |
| 562 | with driver: |
| 563 | script = 'window.location.href = "%s";' % url |
| 564 | js_utils.call_me_later(driver, script, 5) |
| 565 | else: |
| 566 | driver.default_get(url) # The original one |
| 567 | return None |
| 568 | |
| 569 | |
| 570 | def uc_open_with_tab(driver, url): |
no test coverage detected
searching dependent graphs…