class: mouse
[25:14] (extern: com.lehman.aussom.AMouse) extends: object
The mouse class provides low-level mouse input simulation for a page. Instances are obtained via page.mouse(). For most interactions prefer locator.click() or locator.hover(); use mouse for precise coordinate-based or drag-gesture scenarios.
Methods
-
move (
double X, double Y)Moves the mouse pointer to the given page coordinates.
- @p
Xis a double x coordinate in pixels. - @p
Yis a double y coordinate in pixels. - @r
Thisobject.
- @p
-
click (
double X, double Y)Clicks at the given page coordinates using the primary (left) mouse button.
- @p
Xis a double x coordinate in pixels. - @p
Yis a double y coordinate in pixels. - @r
Thisobject.
- @p
-
dblclick (
double X, double Y)Double-clicks at the given page coordinates.
- @p
Xis a double x coordinate in pixels. - @p
Yis a double y coordinate in pixels. - @r
Thisobject.
- @p
-
down (
string Button = "left")Presses the given mouse button down at the current position.
- @p
Buttonis an optional string button name: 'left', 'right', or 'middle'. Defaults to 'left'. - @r
Thisobject.
- @p
-
up (
string Button = "left")Releases the given mouse button at the current position.
- @p
Buttonis an optional string button name: 'left', 'right', or 'middle'. Defaults to 'left'. - @r
Thisobject.
- @p
-
wheel (
double DeltaX, double DeltaY)Dispatches a mouse wheel event at the current mouse position.
- @p
DeltaXis a double horizontal scroll amount in pixels. - @p
DeltaYis a double vertical scroll amount in pixels. - @r
Thisobject.
- @p