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

Method expect_event

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

Source from the content-addressed store, hash-verified

14978
14979 @typing.overload
14980 def expect_event(
14981 self,
14982 event: typing.Literal["backgroundpage"],
14983 predicate: typing.Optional[typing.Callable[["Page"], bool]] = None,
14984 *,
14985 timeout: typing.Optional[float] = None,
14986 ) -> AsyncEventContextManager["Page"]: ...
14987
14988 @typing.overload
14989 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