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

Method wait_for_event

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

Source from the content-addressed store, hash-verified

588 return await self._main_frame.wait_for_url(**locals_to_params(locals()))
589
590 async def wait_for_event(
591 self, event: str, predicate: Callable = None, timeout: float = None
592 ) -> Any:
593 async with self.expect_event(event, predicate, timeout) as event_info:
594 pass
595 return await event_info
596
597 async def go_back(
598 self,

Calls 1

expect_eventMethod · 0.95