How do I resolve an error 'Unable to find an image match for the element selected during recording' ?
  • 13 Dec 2023
  • 1 Minute to read
  • Contributors
  • Dark
    Light

How do I resolve an error 'Unable to find an image match for the element selected during recording' ?

  • Dark
    Light

Article Summary

The Tap feature locates elements from the screen using their visual appearance. If the appearance of the target element changes significantly, Autify may fails to locate it.

In such cases, you can utilize the "Quick Element Update" feature to address the issue.

Steps for Correction

Select the step you want to fix on the test result screen and click the "Update Element" button.

img_1.png

Choose the correct element from the screenshot.
img_2.png

Click on "Update Selected Element."
img_3.png

With this, the correction is complete. Please rerun the test to ensure that it works as expected.

If the visual appearance of the target element changes frequently, it's also possible to search for elements based on the page source (XML) of the screen. In such cases, follow these steps to update the step:

Select the step you want to fix on the test result screen and click the "Update Element" button.
img_1.png

Click on the "Update Element (XPath)" button.
img_4.png

Select the target element from the left screenshot or the page source on the right.
img_5.png

Click on "Update Selected Element."
img_6.png

With this, the correction is complete. Please rerun the test to ensure that it works as expected. Subsequent test runs will select the element based on the page source, ignoring its visual changes.

Note: If the correct element is not displayed in the screenshot or the page source, the Quick Element Update feature cannot be used. In such cases, start recording from the scenario details screen and select the 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.