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

Method locator

playwright/_impl/_frame.py:646–661  ·  view source on GitHub ↗
(
        self,
        selector: str,
        hasText: Union[str, Pattern[str]] = None,
        hasNotText: Union[str, Pattern[str]] = None,
        has: Locator = None,
        hasNot: Locator = None,
    )

Source from the content-addressed store, hash-verified

644 await self._channel.send("fill", self._timeout, locals_to_params(locals()))
645
646 def locator(
647 self,
648 selector: str,
649 hasText: Union[str, Pattern[str]] = None,
650 hasNotText: Union[str, Pattern[str]] = None,
651 has: Locator = None,
652 hasNot: Locator = None,
653 ) -> Locator:
654 return Locator(
655 self,
656 selector,
657 has_text=hasText,
658 has_not_text=hasNotText,
659 has=has,
660 has_not=hasNot,
661 )
662
663 def get_by_alt_text(
664 self, text: Union[str, Pattern[str]], exact: bool = None

Callers 7

get_by_alt_textMethod · 0.95
get_by_labelMethod · 0.95
get_by_placeholderMethod · 0.95
get_by_roleMethod · 0.95
get_by_test_idMethod · 0.95
get_by_textMethod · 0.95
get_by_titleMethod · 0.95

Calls 1

LocatorClass · 0.90

Tested by

no test coverage detected