MCPcopy Create free account
hub / github.com/microsoft/playwright-python / add_context_route

Method add_context_route

playwright/_impl/_har_router.py:107–111  ·  view source on GitHub ↗
(self, context: "BrowserContext")

Source from the content-addressed store, hash-verified

105 await route.fallback()
106
107 async def add_context_route(self, context: "BrowserContext") -> None:
108 await context.route(
109 url=self._options_url_match or "**/*",
110 handler=lambda route, _: asyncio.create_task(self._handle(route)),
111 )
112
113 async def add_page_route(self, page: "Page") -> None:
114 await page.route(

Callers 1

route_from_harMethod · 0.80

Calls 2

_handleMethod · 0.95
routeMethod · 0.45

Tested by

no test coverage detected