moveTo
Move the mouse by an offset of the specified element. If no element is specified, the move is relative to the current mouse cursor. If an element is provided but no offset, the mouse will be moved to the center of the element. If the element is not visible, it will be scrolled into view.
#
Usage#
ParametersName | Type | Details |
---|---|---|
options optional | MoveToOptions | moveTo command options |
options.xOffset optional | Number | X offset to move to, relative to the top-left corner of the element. If not specified, the mouse will move to the middle of the element. |
options.yOffset optional | Number | Y offset to move to, relative to the top-left corner of the element. If not specified, the mouse will move to the middle of the element. |