moveToObject

Move the mouse by an offset of the specificed element. 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

1
client.moveToObject(selector,xoffset,yoffset).then(callback);

Parameters

Param Type Details
selector String element to move to
xoffset 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.
yoffset 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.

Uses