Mouse.click Shortcut for `mouse.move()`, `mouse.down()`, `mouse.up()`. Parameters ---------- x : float X coordinate relative to the main frame's viewport in CSS pixels. y : float Y coordinate relative to the main frame's viewport in C
(
self,
x: float,
y: float,
*,
delay: typing.Optional[float] = None,
button: typing.Optional[Literal["left", "middle", "right"]] = None,
click_count: typing.Optional[int] = None,
)
| 1701 | ) |
| 1702 | |
| 1703 | async def click( |
| 1704 | self, |
| 1705 | x: float, |
| 1706 | y: float, |
| 1707 | *, |
| 1708 | delay: typing.Optional[float] = None, |
| 1709 | button: typing.Optional[Literal["left", "middle", "right"]] = None, |
| 1710 | click_count: typing.Optional[int] = None, |
| 1711 | ) -> None: |
| 1712 | """Mouse.click |
| 1713 | |
| 1714 | Shortcut for `mouse.move()`, `mouse.down()`, `mouse.up()`. |
| 1715 | |
| 1716 | Parameters |
| 1717 | ---------- |
| 1718 | x : float |
| 1719 | X coordinate relative to the main frame's viewport in CSS pixels. |
| 1720 | y : float |
| 1721 | Y coordinate relative to the main frame's viewport in CSS pixels. |
| 1722 | delay : Union[float, None] |
| 1723 | Time to wait between `mousedown` and `mouseup` in milliseconds. Defaults to 0. |
| 1724 | button : Union["left", "middle", "right", None] |
| 1725 | Defaults to `left`. |
| 1726 | click_count : Union[int, None] |
| 1727 | defaults to 1. See [UIEvent.detail]. |
| 1728 | """ |
| 1729 | |
| 1730 | return mapping.from_maybe_impl( |
| 1731 | await self._impl_obj.click( |
| 1732 | x=x, y=y, delay=delay, button=button, clickCount=click_count |
| 1733 | ) |
| 1734 | ) |
| 1735 | |
| 1736 | async def dblclick( |
| 1737 | self, |
nothing calls this directly
no test coverage detected