What to do when the target element isn't displayed/visible
  • 25 May 2022
  • 1 Minute to read
  • Contributors
  • Dark
    Light

What to do when the target element isn't displayed/visible

  • Dark
    Light

This is a troubleshooting guide for "Element not found" errors where the target element was not displayed in the screenshot.

On this page, you'll learn the most common causes and solutions.

Common causes and solutions

1. Missing hover step

Cause

The most common cause is that the test scenario doesn't have a hover step that displays the target element.

For example, in the below screenshot, you need to add a hover step on the "Resources" menu item to make the "Guides" and other pop-up list items appear.

hover-example

Solution

See Hover Step (Autify University) to learn how to add a hover step.

Note that you need to add a hover step on the element that triggers rendering, not on the one you want to display.

2. Error in previous steps

Cause

You may find the screenshot of the failed step shows a different page or content than what you expected.
In this case, there may be unexpected errors in previous steps. Most commonly, this is an unexpected validation error within a form.

For example, in the below screenshot, you need to input a valid e-mail address to navigate to the next page that shows a thank-you message.
The assertion on the thank-you message will fail with an "Element not found" error if you input an invalid value into the form.

invalid-email

thank-you-message

Solution

To troubleshoot, check the screenshots of the preceding steps.

In the above example, the error was caused by the preceding input step. While the input step was successful, the argument (input value) of the step was not a valid e-mail address.

error-in-preceding-step

If you are still having trouble...

Contact our Customer Success team anytime. We will help you solve this issue. 🙂


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.