Table of contents

Contents



Official Content

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:

MouseMoveByID

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")

MouseMoveByLinkText

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")

MouseMoveByName

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")

MouseMoveByCSS

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")

MouseMoveByXPath

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")

Last update: November 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant