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

Function get_by_attribute_text_selector

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

Source from the content-addressed store, hash-verified

919
920
921def get_by_attribute_text_selector(
922 attr_name: str, text: Union[str, Pattern[str]], exact: bool = None
923) -> str:
924 return f"internal:attr=[{attr_name}={escape_for_attribute_selector(text, exact=exact)}]"
925
926
927def get_by_label_selector(text: Union[str, Pattern[str]], exact: bool = None) -> str:

Callers 3

get_by_alt_text_selectorFunction · 0.85
get_by_title_selectorFunction · 0.85

Calls 1

Tested by

no test coverage detected