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