Mouse Class
Mouse commands relative to a DOM-element
Methods
_requestJSON
(
private
-
method -
path -
[body]
Performs a context dependent JSON request for the current session. The result is parsed for errors.
Returns:
:
click
(
-
[button=Mouse.BUTTON_LEFT]
Click any mouse button at the center of the element
Parameters:
-
[button=Mouse.BUTTON_LEFT]Number optional
clickAt
(
-
xOffset -
yOffset -
[button=Mouse.BUTTON_LEFT]
Click any mouse button at a specified offset of the element
doubleClick
()
Double-clicks the element at the center of the element
doubleClickAt
(
-
xOffset -
yOffset
Double-clicks the element at a specified offset of the element
moveTo
(
-
xOffset -
yOffset
Move the mouse by an offset of the element
moveToCenter
()
Move the mouse to the center of the element
Properties
BUTTON_LEFT
Int
static
Left mouse button
BUTTON_MIDDLE
Int
static
Middle mouse button. It is the scroll button on some mouses.
BUTTON_RIGHT
Int
static
Right mouse button
