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

Method get_by_label

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

Source from the content-addressed store, hash-verified

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
263 ) -> "Locator":
264 return self.locator(get_by_label_selector(text, exact=exact))
265
266 def get_by_placeholder(
267 self, text: Union[str, Pattern[str]], exact: bool = None

Callers

nothing calls this directly

Calls 2

locatorMethod · 0.95
get_by_label_selectorFunction · 0.85

Tested by

no test coverage detected