Skip to main content

Hover over Web Element

Command description

Hover over a web element such as text, a button, an image, or a link. This command activates the element's webpage.

Command Input Parameters

input parametersInput parameter typeDescription
Webpage ObjectWebPageWebpage containing the target element
Web ElementWebElement or str (captured element UID, not element name, not ms-rpa-id)Select a captured element or one returned by Get Web Element, Get Similar Web Elements, or Get Related Web Elements
Hover MethodenumMouse Hover, Silent Hover, CDP Silent Hover
Mouse Pointer PositionenumRandom, Center; position at which to hover within the element
Element Wait DurationnumberMaximum time to wait for the element to appear, in seconds

Command Output Parameters

None

Type definition reference

Hover mode comparison

hover modeDescription
Mouse HoverBrings the browser and target webpage to the foreground, then moves the pointer over the element
Silent HoverTriggers hover through JavaScript without moving the mouse or bringing the browser forward. It can run when the browser is off-screen or covered by another window
CDP Silent HoverTriggers hover through Chrome CDP without moving the mouse or bringing the browser forward. Its behavior is closer to Mouse Hover and it can run when the browser is off-screen or covered by another window
tip
  • Install the Runavelo browser extension before using this command.
  • CDP Silent Hover requires Runavelo 7.7.0 or later and browser extension 2.4.0 or later.
  • See Capture Web Elements .

Example

To open JD.com's pending orders, first hover over My JD to display the menu, then select Pending Orders.

FAQ

See Web Automation FAQ