(url)
| 7 | |
| 8 | |
| 9 | def launch_driver(url): |
| 10 | seed(len(threading.enumerate())) # Random seed for browser placement |
| 11 | driver = Driver() |
| 12 | try: |
| 13 | driver.set_window_rect(randint(4, 720), randint(8, 410), 700, 500) |
| 14 | driver.get(url=url) |
| 15 | if driver.is_element_visible("h1"): |
| 16 | driver.highlight("h1", loops=9) |
| 17 | else: |
| 18 | driver.sleep(2.2) |
| 19 | finally: |
| 20 | driver.quit() |
| 21 | |
| 22 | |
| 23 | if __name__ == "__main__": |
nothing calls this directly
no test coverage detected
searching dependent graphs…