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

Function wait_for_response

tests/async/test_page.py:119–123  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

117 return exc_info.value
118
119 async def wait_for_response() -> Error:
120 with pytest.raises(Error) as exc_info:
121 async with page.expect_response(server.EMPTY_PAGE):
122 pass
123 return exc_info.value
124
125 results = await asyncio.gather(
126 wait_for_request(), wait_for_response(), page.close()

Calls 1

expect_responseMethod · 0.45

Tested by

no test coverage detected