Hover
Moves the mouse cursor over a web element, triggering hover effects like dropdown menus, tooltips, or element state changes.
Common Properties
- Name - The custom name of the node.
- Color - The custom color of the node.
- Delay Before (sec) - Waits in seconds before executing the node.
- Delay After (sec) - Waits in seconds after executing the node.
- Continue On Error - Automation will continue regardless of any error. The default value is false.
info
If Continue On Error property is true, no error is caught when the project is executed, even if the Catch node is used.
Input
- Browser ID - The browser session identifier from the Open Browser node.
- Selector - The XPath or CSS selector to locate the element to hover over.
Options
-
Selector Type - Type of selector used:
- XPath - Use XPath expression (default)
- CSS - Use CSS selector
-
Wait Timeout (sec) - Maximum time to wait for the element to appear. Default is 5 seconds.
Examples
Show Dropdown Menu
Browser ID: {{browser_id}}
Selector: //div[@class='menu-item']
Display Tooltip
Browser ID: {{browser_id}}
Selector: //span[@data-tooltip='true']
Reveal Hidden Elements
Browser ID: {{browser_id}}
Selector: //div[@class='hover-container']
Hover Before Clicking Submenu
1. Hover node:
Browser ID: {{browser_id}}
Selector: //nav/li[@class='has-dropdown']
2. Click Element node:
Browser ID: {{browser_id}}
Selector: //nav/li[@class='has-dropdown']//a[text()='Submenu Item']
Tips
- Many dropdown menus require hover before submenu items become visible
- Use Hover to reveal elements that appear on mouse over
- Combine with Click Element for nested menu navigation
- Some websites display additional information on hover
- Add a small delay after hover to allow CSS transitions to complete
Common Errors
- "Browser ID cannot be empty" - Connect to an Open Browser node
- "Selector cannot be empty" - Provide an XPath or CSS selector
- "Element not found within X seconds" - The element doesn't exist or takes longer to load
- "Timeout cannot be empty" - Provide a timeout value
Related Nodes
- Click Element - Click elements
- Focus - Focus on elements
- Highlight - Highlight elements