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

Method wait_for_event

playwright/_impl/_network.py:1001–1006  ·  view source on GitHub ↗
(
        self, event: str, predicate: Callable = None, timeout: float = None
    )

Source from the content-addressed store, hash-verified

999 return EventContextManagerImpl(waiter.result())
1000
1001 async def wait_for_event(
1002 self, event: str, predicate: Callable = None, timeout: float = None
1003 ) -> Any:
1004 async with self.expect_event(event, predicate, timeout) as event_info:
1005 pass
1006 return await event_info
1007
1008 def _on_frame_sent(self, opcode: int, data: str) -> None:
1009 if opcode == 2:

Callers

nothing calls this directly

Calls 1

expect_eventMethod · 0.95

Tested by

no test coverage detected