The test fails on mouse over step
  • 17 Jul 2024
  • 1 Minute to read
  • Contributors
  • Dark
    Light

The test fails on mouse over step

  • Dark
    Light

Article summary

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.


Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.