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

Function main

scripts/example_async.py:20–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18
19
20async def main() -> None:
21 async with async_playwright() as p:
22 for browser_type in [p.chromium, p.firefox, p.webkit]:
23 browser = await browser_type.launch()
24 page = await browser.new_page()
25 assert await page.evaluate("() => 11 * 11") == 121
26 await browser.close()
27
28
29if __name__ == "__main__":

Callers 1

example_async.pyFile · 0.70

Calls 5

async_playwrightFunction · 0.90
launchMethod · 0.45
new_pageMethod · 0.45
evaluateMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected