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

Method get_by_text

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

Source from the content-addressed store, hash-verified

302 return self.locator(get_by_test_id_selector(test_id_attribute_name(), testId))
303
304 def get_by_text(
305 self, text: Union[str, Pattern[str]], exact: bool = None
306 ) -> "Locator":
307 return self.locator(get_by_text_selector(text, exact=exact))
308
309 def get_by_title(
310 self, text: Union[str, Pattern[str]], exact: bool = None

Callers

nothing calls this directly

Calls 2

locatorMethod · 0.95
get_by_text_selectorFunction · 0.85

Tested by

no test coverage detected