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

Function handle_route

tests/async/test_page_route.py:427–433  ·  view source on GitHub ↗
(route: Route)

Source from the content-addressed store, hash-verified

425 spinner: List[bool] = []
426
427 async def handle_route(route: Route) -> None:
428 if len(spinner) == 1:
429 await route.abort()
430 spinner.pop(0)
431 else:
432 await route.continue_()
433 spinner.append(True)
434
435 # Cancel 2nd request.
436 await page.route("**/*", handle_route)

Callers

nothing calls this directly

Calls 4

appendMethod · 0.80
abortMethod · 0.45
continue_Method · 0.45
fulfillMethod · 0.45

Tested by

no test coverage detected