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

Method add_page_route

playwright/_impl/_har_router.py:113–117  ·  view source on GitHub ↗
(self, page: "Page")

Source from the content-addressed store, hash-verified

111 )
112
113 async def add_page_route(self, page: "Page") -> None:
114 await page.route(
115 url=self._options_url_match or "**/*",
116 handler=lambda route, _: asyncio.create_task(self._handle(route)),
117 )
118
119 def dispose(self) -> None:
120 asyncio.create_task(

Callers 1

route_from_harMethod · 0.80

Calls 2

_handleMethod · 0.95
routeMethod · 0.45

Tested by

no test coverage detected