MCPcopy Create free account
hub / github.com/microsoft/playwright-python / get_by_alt_text

Method get_by_alt_text

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

Source from the content-addressed store, hash-verified

254 )
255
256 def get_by_alt_text(
257 self, text: Union[str, Pattern[str]], exact: bool = None
258 ) -> "Locator":
259 return self.locator(get_by_alt_text_selector(text, exact=exact))
260
261 def get_by_label(
262 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