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

Method wait_for_web_socket

tests/server.py:214–217  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

212 return await future
213
214 def wait_for_web_socket(self) -> 'asyncio.Future["WebSocketProtocol"]':
215 future: asyncio.Future[WebSocketProtocol] = asyncio.Future()
216 self.once_web_socket_connection(future.set_result)
217 return future
218
219 @contextlib.contextmanager
220 def expect_request(

Callers 4

expect_websocketMethod · 0.95

Calls 1

Tested by 3