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

Method wait_for_request

tests/server.py:207–212  ·  view source on GitHub ↗
(self, path: str)

Source from the content-addressed store, hash-verified

205 self.listen(factory)
206
207 async def wait_for_request(self, path: str) -> TestServerRequest:
208 if path in self.request_subscribers:
209 return await self.request_subscribers[path]
210 future: asyncio.Future["TestServerRequest"] = asyncio.Future()
211 self.request_subscribers[path] = future
212 return await future
213
214 def wait_for_web_socket(self) -> 'asyncio.Future["WebSocketProtocol"]':
215 future: asyncio.Future[WebSocketProtocol] = asyncio.Future()

Calls

no outgoing calls