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

Function main

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

Source from the content-addressed store, hash-verified

7
8
9async def main(url):
10 driver = await cdp_driver.start_async()
11 page = await driver.get(url)
12 await page.set_window_rect(randint(4, 600), randint(8, 410), 860, 500)
13 await page.sleep(0.5)
14 await page.type("input", "Text")
15 await page.click("button")
16 await page.sleep(2)
17 driver.stop()
18
19
20def run_main(url):

Callers 1

run_mainFunction · 0.70

Calls 6

getMethod · 0.45
set_window_rectMethod · 0.45
sleepMethod · 0.45
typeMethod · 0.45
clickMethod · 0.45
stopMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…