Hi
How can I select the closest match which are found when an other UI element is not found? Here is the error code
I want that i takes always the closest 75% match when it fails to find the original one.
Click ‘link 1.935.017,36’: Could not find the UI element corresponding to this selector:
[1]
[2]
[3]
[4]
[5]
[6]
Search failed at selector tag:
[5]
The closest matches found are:
[75%]
[50%]
Srini84
(Srinivas Kadamati)
November 11, 2020, 12:59pm
2
@David_Mitrovic
You can wrap that element into a try catch and in Catch you can give the 75% selector
Hope this may helps you
Thanks
how can I force to catch always the 75% in try catch?
Srini84
(Srinivas Kadamati)
November 11, 2020, 1:06pm
4
@David_Mitrovic
Can you share the screenshot of the links you are pointing to?
As per the log i see there you have a log which is finding closest matches
So i believe you can give the same logic
Thanks
The link is a number and changes every 15 minutes. So what I am trying to do is: that the click indicator in uipath is clicking on variable link. I dont know if try catch is the solution maybe you have an idea how to force click a changable link? Here are the screenshots:
Srini84
(Srinivas Kadamati)
November 11, 2020, 1:40pm
6
@David_Mitrovic
If the link is always refreshing then you need to find a dynamic selector where it can click even if the link is refreshed
But i see that you are passing the variable to selector which will be a static selector to find that click element
Instead you can place a * which acts as dynamic selector
Hope this may helps you
Thanks