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

Function get_by_test_id_selector

playwright/_impl/_locator.py:915–918  ·  view source on GitHub ↗
(
    test_id_attribute_name: str, test_id: Union[str, Pattern[str]]
)

Source from the content-addressed store, hash-verified

913
914
915def get_by_test_id_selector(
916 test_id_attribute_name: str, test_id: Union[str, Pattern[str]]
917) -> str:
918 return f"internal:testid=[{test_id_attribute_name}={escape_for_attribute_selector(test_id, True)}]"
919
920
921def get_by_attribute_text_selector(

Callers 3

get_by_test_idMethod · 0.90
get_by_test_idMethod · 0.85
get_by_test_idMethod · 0.85

Calls 1

Tested by

no test coverage detected