View Source Improve this doc

moveToObject

Move the mouse by an offset of the specified 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
browser.moveToObject(selector,xoffset,yoffset);

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