Tips for selecting elements reliably (Image Recognition)
  • 14 May 2024
  • 1 Minute to read
  • Contributors
  • Dark
    Light

Tips for selecting elements reliably (Image Recognition)

  • Dark
    Light

Article summary

Image Recognition

When Autify searches for an element using image recognition, it locates the element based on the appearance of the area that you tapped during recording.

Please keep the following points in mind so that Autify can select elements reliably.

Select an distinctive area for the element

Reliability may be affected if the area you select has nothing displayed around it, or if there are multiple areas that have the same appearance.
You can make tests more reliable by interacting with areas that have an appearance that's distinctive to the target element.

As you can see in the example image below, it's best to tap an area that has distinguishing characteristics and avoid white areas.
good bad selection 1.png

Avoid areas where the appearance changes frequently

Reliability may be affected if there are elements close-by whose appearance changes at each test run, such as time, date, or dynamic content.
Whenever possible, choose an area within the target element where the appearance remains consistent. If there is no such area, we recommend using other locators such as XPath.


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.