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