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 parameters | Input parameter type | Description |
|---|---|---|
| Webpage Object | WebPage | Webpage containing the target element |
| Web Element | WebElement 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 Method | enum | Mouse Hover, Silent Hover, CDP Silent Hover |
| Mouse Pointer Position | enum | Random, Center; position at which to hover within the element |
| Element Wait Duration | number | Maximum time to wait for the element to appear, in seconds |
Command Output Parameters
None
Type definition reference
Hover mode comparison
| hover mode | Description |
|---|---|
| Mouse Hover | Brings the browser and target webpage to the foreground, then moves the pointer over the element |
| Silent Hover | Triggers 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 Hover | Triggers 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.