Skip to content

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.

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.

ParameterEditorDescription
selectorselectorThe element to hover over.
ParameterEditorDescription
pagesessionThe page session. Omit it inside a body; outside, pass = page.
timeoutnumberMaximum in ms to wait. By default 30000.

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 = visible
Page Click selector = (.opcion-cerrar-sesion)
  • Click — click on the option revealed by the hover.
  • Wait For — wait for the submenu to appear.