Hover
Type: page-hover · Package: Browser v1.0.0
Move the mouse pointer over an element, without clicking. It is used to activate behaviors that only appear when you hover the cursor over it: drop-down menus, tooltips, buttons that are revealed, navigation submenus.
How it works
Section titled “How it works”Locates the element by its selector and positions the mouse over it, firing its hover/mouseover events. The typical thing is to follow it with a Click on the option that was revealed.
Required parameters
Section titled “Required parameters”| Parameter | Editor | Description |
|---|---|---|
selector | selector | The element to hover over. |
Optional parameters
Section titled “Optional parameters”| Parameter | Editor | Description |
|---|---|---|
page | session | The page session. Omit it inside a body; outside, pass = page. |
timeout | number | Maximum in ms to wait. By default 30000. |
Example
Section titled “Example”Open a menu that appears when you mouse over and click an option:
Page Hover selector = (#menuUsuario)Page Wait For selector = (.opcion-cerrar-sesion) state = visiblePage Click selector = (.opcion-cerrar-sesion)