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

Method get_by_alt_text

playwright/_impl/_frame.py:663–666  ·  view source on GitHub ↗
(
        self, text: Union[str, Pattern[str]], exact: bool = None
    )

Source from the content-addressed store, hash-verified

661 )
662
663 def get_by_alt_text(
664 self, text: Union[str, Pattern[str]], exact: bool = None
665 ) -> "Locator":
666 return self.locator(get_by_alt_text_selector(text, exact=exact))
667
668 def get_by_label(
669 self, text: Union[str, Pattern[str]], exact: bool = None

Callers

nothing calls this directly

Calls 2

locatorMethod · 0.95
get_by_alt_text_selectorFunction · 0.90

Tested by

no test coverage detected