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

Method wait_for_selector

playwright/_impl/_page.py:420–427  ·  view source on GitHub ↗
(
        self,
        selector: str,
        timeout: float = None,
        state: Literal["attached", "detached", "hidden", "visible"] = None,
        strict: bool = None,
    )

Source from the content-addressed store, hash-verified

418 return await self._main_frame.query_selector_all(selector)
419
420 async def wait_for_selector(
421 self,
422 selector: str,
423 timeout: float = None,
424 state: Literal["attached", "detached", "hidden", "visible"] = None,
425 strict: bool = None,
426 ) -> Optional[ElementHandle]:
427 return await self._main_frame.wait_for_selector(**locals_to_params(locals()))
428
429 async def is_checked(
430 self, selector: str, strict: bool = None, timeout: float = None

Calls 1

locals_to_paramsFunction · 0.90