MCPcopy
hub / github.com/microsoft/playwright-python / expect_event

Method expect_event

playwright/async_api/_generated.py:1132–1138  ·  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

1130
1131 @typing.overload
1132 def expect_event(
1133 self,
1134 event: typing.Literal["close"],
1135 predicate: typing.Optional[typing.Callable[["WebSocket"], bool]] = None,
1136 *,
1137 timeout: typing.Optional[float] = None,
1138 ) -> AsyncEventContextManager["WebSocket"]: ...
1139
1140 @typing.overload
1141 def expect_event(

Callers

nothing calls this directly

Calls 4

to_millisecondsFunction · 0.90
expect_eventMethod · 0.45
_wrap_handlerMethod · 0.45

Tested by

no test coverage detected