Hi,
When we enable both fuzzy and strict selector in UI Automation activities like click, which one will work or both will work if one fails?
Please help me to understand
Thanks
Hi,
When we enable both fuzzy and strict selector in UI Automation activities like click, which one will work or both will work if one fails?
Please help me to understand
Thanks
Both the methods will start identifying the target UI element simultaneously at the same time. Whichever method finds the UI element first will be the selected or worked method. The another will be terminated.
If both the methods don’t find the target UI element, then only the bot will throw exception.
The targeting methods work redundantly, simultaneously attempting to identify the target element. The first method that successfully finds the target is considered.
A target and anchor pair is called as Descriptor.
For example if you have one target and one anchor, and have enabled strict, fuzzy and image selector for them. Then there are three options for the target and three for the anchor.
Means, there are (3*3) 9 combinations to identify the element.
If none of the combination is able to find the element, then the activity throws an error.
Check the below image from the UiPath Academy course:
Thanks @ashokkarale @Ankit9510
I am facing a scenario where I enabled both strict and fuzzy selctors. Strict is having 100% accuracy when it is enabled alone. Whereas fuzzy is less accurate and showing Duplicate Matches found. Since I enabled both strict and fuzzy, due to fuzzy’s less accurate identification, the overall accuracy level is 75% with a message “Duplicate Matches Found” when I click validate button. So Now what will happen, can bot successfully identifies and proceed further or will it get failed?
This understanding would be helpful to resolve my production issue.
Have you set the selector accuracy higher than the default 50%? That might help, depending on the element you need to find ![]()
But otherwise in regards to your question with one 100% match with the strict selector and fuzzy with multiple matches, I’m pretty sure it would not fail but it would click the first occurence of that element. At least that’s how it work when I create a similiar scenario.
As per the approach, both the methods will start at once and if the fuzzy finds the Ui element first and that too with duplicates, it will throw the exception.
If Strict found the Ui element first then there won’t be any error.
Hi @mohamedalthaf ,
In this scenario, you should use a Strict Selector for Target and Anchor element.
Alternatively:
Thanks!
If strict is providing your 100% for your scenario, you can only keep strict and disable rest of the types.
That way only strict selector will work every time. We also have had some scenarios where only strict works better so we only check strict from the list and uncheck the rest.
Hope this helps.