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

Method get_by_title

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

Source from the content-addressed store, hash-verified

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
311 ) -> "Locator":
312 return self.locator(get_by_title_selector(text, exact=exact))
313
314 def frame_locator(self, selector: str) -> "FrameLocator":
315 return FrameLocator(self._frame, self._selector + " >> " + selector)

Callers

nothing calls this directly

Calls 2

locatorMethod · 0.95
get_by_title_selectorFunction · 0.85

Tested by

no test coverage detected