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

Method start_test

examples/cdp_mode/raw_req_async.py:32–39  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

30 )
31
32 async def start_test(self):
33 driver = await cdp_driver.start_async()
34 tab = await driver.get("about:blank")
35 tab.add_handler(mycdp.fetch.RequestPaused, self.request_paused_handler)
36 url = "https://gettyimages.com/photos/firefly-2003-nathan"
37 await driver.get(url)
38 await asyncio.sleep(5)
39 driver.stop()
40
41
42@decorators.print_runtime("RequestPausedTest")

Callers 1

mainFunction · 0.95

Calls 4

getMethod · 0.45
add_handlerMethod · 0.45
sleepMethod · 0.45
stopMethod · 0.45

Tested by

no test coverage detected