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

Method get_by_alt_text

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

Source from the content-addressed store, hash-verified

818 )
819
820 def get_by_alt_text(
821 self, text: Union[str, Pattern[str]], exact: bool = None
822 ) -> "Locator":
823 return self.locator(get_by_alt_text_selector(text, exact=exact))
824
825 def get_by_label(
826 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.85

Tested by

no test coverage detected