Skip to main content

Hover over Desktop Element

Command description

Moves the mouse pointer over the specified element. The element's window is automatically brought to the front.

Command Input Parameters

input parametersInput parameter typeDescription
Desktop ElementWinElement or str (captured element UID, not element name, not ms-rpa-id)Target element. Select a captured desktop element or use one returned by Get Desktop Element, Get Similar Desktop Elements, or Get Related Desktop Elements.
Hover PositionenumRandom, Center, hover the mouse pointer to the middle of the element or a random position
Element Wait DurationnumberMaximum time to wait for the element to appear, in seconds. The command reports an error if the timeout expires.

Command Output Parameters

None

Type definition reference

tip
  • This command automatically brings the window to the front and restores it if minimized, so Activate Window is normally unnecessary.
  • Capture element reference Capture Desktop Elements