Hover
operagx_hoverHover over an element or screen position to reveal hover-triggered menus, tooltips, or dropdowns before interacting with them.
Instructions
Moves the mouse over an element or point without clicking, e.g. to reveal a hover-triggered menu or tooltip before interacting with it.
Args:
tabId / tabIndex / matchUrl / matchTitle (optional): which tab to hover in.
elementId / selector / x+y: exactly one, same as operagx_click.
Returns: { "ok": true, "hoveredAt": { "x": number, "y": number, "selector"?: string } }
Examples:
Use when: "open the dropdown that only appears on hover" -> hover over its trigger element first, then operagx_map_elements to find the newly-visible items.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Absolute viewport x in CSS pixels, if not using elementId/selector. | |
| y | No | Absolute viewport y in CSS pixels, if not using elementId/selector. | |
| tabId | No | Tab id from operagx_list_tabs. Omit to use the first open tab. | |
| matchUrl | No | Pick the tab whose URL contains this substring. | |
| selector | No | CSS selector, if not using elementId. | |
| tabIndex | No | Zero-based tab index, alternative to tabId. | |
| elementId | No | Id from the last operagx_map_elements call (preferred — most robust). | |
| matchTitle | No | Pick the tab whose title contains this substring. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| hoveredAt | Yes |