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

Function launch_driver

examples/raw_multi_sb.py:9–17  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

7
8
9def 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
20if __name__ == "__main__":

Callers

nothing calls this directly

Calls 6

SBFunction · 0.90
set_window_rectMethod · 0.45
gotoMethod · 0.45
is_element_visibleMethod · 0.45
highlightMethod · 0.45
sleepMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…