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

Method get_by_test_id

playwright/_impl/_frame.py:708–709  ·  view source on GitHub ↗
(self, testId: Union[str, Pattern[str]])

Source from the content-addressed store, hash-verified

706 )
707
708 def get_by_test_id(self, testId: Union[str, Pattern[str]]) -> "Locator":
709 return self.locator(get_by_test_id_selector(test_id_attribute_name(), testId))
710
711 def get_by_text(
712 self, text: Union[str, Pattern[str]], exact: bool = None

Callers

nothing calls this directly

Calls 3

locatorMethod · 0.95
get_by_test_id_selectorFunction · 0.90
test_id_attribute_nameFunction · 0.90

Tested by

no test coverage detected