Ambigious Element UIPath Clicks on wrong element

Hey!
I have a Problem with a list that is only accessible by computer vision.
image
I have a Object Repository Item defined that uses a variable for the name of the list element. In this case the value of the variable is “Rundfunkbeitrag”. For what ever reason my automatization alsways clicks on the second item that is named “Rundfunkbeitrag (Halter Kunde)” so the strings are not equal. I have appended the calling piece of code below.

AplScreen.Check(Descriptors.Apl.XAppl.Offer.Services.ServiceItem, new CheckOptions
                {
                    Variables = new Dictionary<string, string>() { { "servicename", "Rundfunkbeitrag" } },
                });

Thanks in Advance!

Hi,
What if you add an anker with the second item (Rundfunkbeitrag (Halter Kunde).
Then it would not be ambigious anymore.

Hi @testEng

what is there above the top row? column names may be.

Providing anchor(s) for the element would help in this case. I would usually go with 2 anchors here.

That should help.

Thank you for your fast response!
The solution with the two anchors works. Since iam curious, are there other solutions like getting all matches and than picking the one with the highest matching?

Hi @testEng

Glad to hear it worked!

Now that your issue is resolved, Kindly mark the post as solution so topic can be closed and help others.

About other approach, per my view, This is the best way when using CV.

Another thing you can try is using CV’s accuracy parameter with target.

But in my view, using anchors is more accurate approach.

Regards
Sonali

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.