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

Function get_by_text_selector

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

Source from the content-addressed store, hash-verified

943
944
945def get_by_text_selector(text: Union[str, Pattern[str]], exact: bool = None) -> str:
946 return "internal:text=" + escape_for_text_selector(text, exact=exact)
947
948
949def bool_to_js_bool(value: bool) -> str:

Callers 3

get_by_textMethod · 0.90
get_by_textMethod · 0.85
get_by_textMethod · 0.85

Calls 1

escape_for_text_selectorFunction · 0.90

Tested by

no test coverage detected