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

Method or_

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

Source from the content-addressed store, hash-verified

382 )
383
384 def or_(self, locator: "Locator") -> "Locator":
385 if locator._frame != self._frame:
386 raise Error("Locators must belong to the same frame.")
387 return Locator(
388 self._frame,
389 self._selector + " >> internal:or=" + json.dumps(locator._selector),
390 )
391
392 def and_(self, locator: "Locator") -> "Locator":
393 if locator._frame != self._frame:

Calls 2

ErrorClass · 0.85
LocatorClass · 0.70