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

Method and_

playwright/_impl/_locator.py:392–398  ·  view source on GitHub ↗
(self, locator: "Locator")

Source from the content-addressed store, hash-verified

390 )
391
392 def and_(self, locator: "Locator") -> "Locator":
393 if locator._frame != self._frame:
394 raise Error("Locators must belong to the same frame.")
395 return Locator(
396 self._frame,
397 self._selector + " >> internal:and=" + json.dumps(locator._selector),
398 )
399
400 async def focus(self, timeout: float = None) -> None:
401 params = locals_to_params(locals())

Calls 2

ErrorClass · 0.85
LocatorClass · 0.70