Eligibility Selection Gives "Multiple Similar Matches Found" Error

image

I’m working with a screen (see attached image) that has two text labels: “Individual” and “Group”. Each of these labels can appear in two colors :
Black = “NO” (not eligible)
Green = “YES” (eligible)

I’m trying to select the one that is green (YES), but when I attempt this, I get the error:
“Multiple similar matches found”

How can I correctly select the green (YES) version of either “Individual” or “Group” without this error?

2 Likes

Hi @ighrlhr

Use Find Children to get all matching elements, then filter by color (e.g., Color.ToString = "Color [A=255, R=0, G=128, B=0]" for green) or by checking a specific attribute indicating eligibility, and click the correct one.

Happy Automation

2 Likes

@ighrlhr

Indicate the green check box..mostly both the elements are present by via class may be only one is made visible in the ui

So try to indicate the selector using ui explorer and then check if there is only one match if jot any unique attribute that is present and can use alternately you can try indicating the value as anchors and use the green icon beside it to make it more unique

Cheers

1 Like

@ighrlhr,

You can use Get Attribute activity to get the color of the ui element. After getting the color, you can add that into the selector for selection.

1 Like

Sir i can use “get attribute” activity but When I add only one color in the ‘Get Attribute’ activity, the automation works. But when it tries to detect another color, it gives a ‘not found’ error. And if I add both colors (black and green) together, it shows a ‘similar matches found’ error. What is the reason for this?
image
Both words can be green, both can be black, or one might be green while the other is black

The green checkboxes cannot be detected by UI automation.

@ighrlhr,

There should be other attributes unique to each UI element. Isn’t the UI explorer and build a reliable selector for this.

2 Likes

Try opening the UI Explorer and examining the UI tree . it displays all available elements along with their attributes. These attributes can help you identify and fine-tune your selectors more precisely.

1 Like