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

Method expect_event

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

Source from the content-addressed store, hash-verified

6936
6937 @typing.overload
6938 def expect_event(
6939 self,
6940 event: typing.Literal["close"],
6941 predicate: typing.Optional[typing.Callable[["Worker"], bool]] = None,
6942 *,
6943 timeout: typing.Optional[float] = None,
6944 ) -> AsyncEventContextManager["Worker"]: ...
6945
6946 @typing.overload
6947 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