(self, locator: "Locator")
| 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: |