How click variable name with symbols

Hi,
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:
image

Then pass in the variable which contains the required data like so:
image

You might also want to all a wildcard just to give the selector some flexibility:
image

I hope that helps.

Kind Regards,
Ashwin A.K

1 Like

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

Regards

1 Like

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
Thanks

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…

Any ideia?
Thanks

@siteltower,

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 :wink:

Kind Regards,
Ashwin A.K

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!

1 Like