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

Method query_selector

playwright/_impl/_page.py:410–415  ·  view source on GitHub ↗
(
        self,
        selector: str,
        strict: bool = None,
    )

Source from the content-addressed store, hash-verified

408 self._timeout_settings.set_default_timeout(timeout)
409
410 async def query_selector(
411 self,
412 selector: str,
413 strict: bool = None,
414 ) -> Optional[ElementHandle]:
415 return await self._main_frame.query_selector(selector, strict)
416
417 async def query_selector_all(self, selector: str) -> List[ElementHandle]:
418 return await self._main_frame.query_selector_all(selector)

Calls

no outgoing calls