The test fails on mouse over step

Prev Next

If the "hover over element" (or mouse-over-hover) step fails with an "element not found" error, the target element for recording the step may be incorrect.

Example usage

Drop-down menu

For example, the "Guides" on autify.com will not appear unless you hover the mouse pointer over "Resources". If you add a hover step to "Resources," a menu item such as List of Documents will appear when the test is run.
For details on how to add hover-steps, please refer to here.

mouse_over_steps_fail_en.png

Tooltips

A "tooltip" is a speech bubble-like UI that appears when the mouse cursor hovers over link text or other elements.
If you want to test an element such as a tooltip that disappears when the mouse is removed from the hover element, display the target element in the JS Step and then test the target element.
Here is a snippet of the JS Step.

mouse_over_step_fail_pointing_target_2.png

mouse_over_step_fail_pointing_target_1.png

Examples of things that can go wrong.

When the parent element is completely hidden by mouseover

In some cases, such as when the element displayed on mouse-over is very large, the parent element may be completely hidden. In this case, the mouse-over step will be recorded for the displayed element. After recording the mouseover step, specify the CSS selector for the parent element.