I have a for each where I click on each variable name on a web page but everytime that name has symbols the process crashes
I have a name like this “Mar’one” and on the uiExplorer it shoes as “MarD’one” how do I pass that to the click variable?
Hi @siteltower ,
You have the option of passing variables into the Selectors themselves like so →
Highlight the selector of interest and right click on User variable like so:
Then pass in the variable which contains the required data like so:
You might also want to all a wildcard just to give the selector some flexibility:
I hope that helps.
Did you try using the wildcards?
We can pass the * for 2 characters or ? For one, if you noticed that just 2 character are changing you can replace it by * and try again, in should work
Yes my code is like that the issue is that the variable value can have symbols and sometimes it doesn’t so I need a way to pass though that
but how could it work if the variable value always changes? it’s inside a for each getting names from a table to click so can have names with symbols like ’ or ´ and other with no symbol…
Have you tried to replace in your variable some characters with wildcards sucha as: * or ?
Hi @siteltower ,
You can use Fuzzy Selectors if that is the case, to match to a certain percentage like so →
You can read more from here.
Believe it or not, UiPath has done its research and has come up with incredible solutions, its up to us to search them out
you can build a combination of both, passing the variable and for characters that might change, use the wildcards
also you can try ussing the @ashwin.ashok idea, new activities came with new and optimal solutions
hope it helps, regards!