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

Method get_by_text

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

Source from the content-addressed store, hash-verified

987 return self._main_frame.get_by_test_id(testId)
988
989 def get_by_text(
990 self, text: Union[str, Pattern[str]], exact: bool = None
991 ) -> "Locator":
992 return self._main_frame.get_by_text(text, exact=exact)
993
994 def get_by_title(
995 self, text: Union[str, Pattern[str]], exact: bool = None

Calls

no outgoing calls