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

Function main

scripts/example_sync.py:18–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

example_sync.pyFile · 0.70

Calls 5

sync_playwrightFunction · 0.90
launchMethod · 0.45
new_pageMethod · 0.45
evaluateMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected