You can simulate the mouse moving to a certain location, by providing the HTML element location. This will cause the mouse position to be set at the top-left corner of the specified element.
In case you want to select options or click elements, refer to:
Sets the mouse position at the top-left corner of the specified element using its ID.
Parameters:
- ID: the HTML element ID to locate.
Example of use:
&driver.MouseMoveById("BTN1")
Sets the mouse position at the top-left corner of the specified link using its text:
Parameters:
- LinkText: the link text to locate.
Example of use:
&driver.MouseMoveByLinkText("mouse-over here")
Sets the mouse position at the top-left corner of the specified element using its 'name' attribute.
Parameters:
- Name: the NAME attribute of the control to locate.
Example of use:
&driver.MouseMoveByName("BTN2")
Sets the mouse position at the top-left corner of the specified element using a CSS selector.
Parameters:
- CSS: the CSS selector to the element that you want to locate.
Example of use:
&driver.MouseMoveByCSS("#button1")
Sets the mouse position at the top-left corner of the specified element using an XPath selector.
Parameters:
- XPath: the XPath selector to the element that wants to be located.
Example of use:
&driver.MouseMoveByXPath("//span/input")