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

Function get_by_label_selector

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

Source from the content-addressed store, hash-verified

925
926
927def get_by_label_selector(text: Union[str, Pattern[str]], exact: bool = None) -> str:
928 return "internal:label=" + escape_for_text_selector(text, exact=exact)
929
930
931def get_by_alt_text_selector(text: Union[str, Pattern[str]], exact: bool = None) -> str:

Callers 3

get_by_labelMethod · 0.90
get_by_labelMethod · 0.85
get_by_labelMethod · 0.85

Calls 1

escape_for_text_selectorFunction · 0.90

Tested by

no test coverage detected