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

Method wait_for_event

playwright/async_api/_generated.py:1216–1222  ·  view source on GitHub ↗
(
        self,
        event: typing.Literal["close"],
        predicate: typing.Optional[typing.Callable[["WebSocket"], bool]] = None,
        *,
        timeout: typing.Optional[float] = None,
    )

Source from the content-addressed store, hash-verified

1214
1215 @typing.overload
1216 async def wait_for_event(
1217 self,
1218 event: typing.Literal["close"],
1219 predicate: typing.Optional[typing.Callable[["WebSocket"], bool]] = None,
1220 *,
1221 timeout: typing.Optional[float] = None,
1222 ) -> "WebSocket": ...
1223
1224 @typing.overload
1225 async def wait_for_event(

Callers

nothing calls this directly

Calls 4

to_millisecondsFunction · 0.90
from_maybe_implMethod · 0.80
wait_for_eventMethod · 0.45
_wrap_handlerMethod · 0.45

Tested by

no test coverage detected