← ClaudeAtlas

testdriverhoverlisted

Hover over elements or coordinates
testdriverai/testdriverai · ★ 242 · Testing & QA · score 71
Install: claude install-skill testdriverai/testdriverai
<!-- Generated from hover.mdx. DO NOT EDIT. --> ## Overview Move the mouse cursor over elements or specific coordinates without clicking, useful for revealing tooltips, dropdowns, and hover effects. ## Element Hover Hover over a located element. ### Syntax ```javascript await element.hover() ``` ### Returns `Promise<void>` ### Examples ```javascript // Find and hover const tooltip = await testdriver.find('info icon'); await tooltip.hover(); // Wait to see tooltip await new Promise(r => setTimeout(r, 1000)); // Hover over menu to reveal submenu const menu = await testdriver.find('Products menu'); await menu.hover(); const submenu = await testdriver.find('Laptops submenu item'); await submenu.click(); ``` ## Coordinate Hover Hover at specific screen coordinates. ### Syntax ```javascript await testdriver.hover(x, y) ``` ### Parameters <ParamField path="x" type="number" required> X coordinate </ParamField> <ParamField path="y" type="number" required> Y coordinate </ParamField> ### Returns `Promise<void>` ### Examples ```javascript // Hover at coordinates await testdriver.hover(500, 300); // Hover and wait await testdriver.hover(500, 300); await new Promise(r => setTimeout(r, 1000)); ``` ## Best Practices <Check> **Prefer element hover over coordinates** ```javascript // ✅ Preferred const icon = await testdriver.find('info icon'); await icon.hover(); // ❌ Avoid await testdriver.hover(500, 300); ``` </Check> <Check> **Wait aft