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

Function handle

tests/sync/test_request_fulfill.py:20–22  ·  view source on GitHub ↗
(route: Route)

Source from the content-addressed store, hash-verified

18
19def test_should_fetch_original_request_and_fulfill(page: Page, server: Server) -> None:
20 def handle(route: Route) -> None:
21 response = page.request.fetch(route.request)
22 route.fulfill(response=response)
23
24 page.route("**/*", handle)
25 response = page.goto(server.PREFIX + "/title.html")

Callers

nothing calls this directly

Calls 3

fetchMethod · 0.45
fulfillMethod · 0.45
jsonMethod · 0.45

Tested by

no test coverage detected