MCPcopy Index your code
hub / github.com/microsoft/playwright-python / run

Method run

tests/common/test_threads.py:25–31  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

23
24 class TestThread(threading.Thread):
25 def run(self) -> None:
26 with sync_playwright() as playwright:
27 browser = playwright[browser_name].launch(**launch_arguments)
28 # This should not throw ^^.
29 browser.new_page()
30 browser.close()
31 result.append("Success")
32
33 test_thread = TestThread()
34 test_thread.start()

Callers 3

startMethod · 0.45
_test_signals_asyncFunction · 0.45

Calls 5

sync_playwrightFunction · 0.90
appendMethod · 0.80
launchMethod · 0.45
new_pageMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected