I’ve seen a bunch of forums explaining how to do this, but I can’t seem to get this to work in my situation. I am using the “NClick” activity to click on an address using a variable that stores the address. I have this variable written in the Fuzzy Selector expression. I normally do not have an issue inserting a variable there, but we have some addresses that are duplicate, with one being lowercase and one being uppercase.
How do I get my Fuzzy Selector to recognize case sensitivity? Here is how I have the expression written:
Unfortunately, it still does not work. The activity just hangs there. I don’t want case to be ignored, however. If the data table has the first row found as all caps, I would want the click to happen on the address that is in all caps.
@Anil_G I got it so the activity isn’t hanging on me. I deleted and re-added the activity, now it will actually click. However, when I set both ‘true’ or ‘false’, the click only wants to pick the address in all caps when it is on that row. The bot does click on each one like it’s supposed to, it just chooses the one in all caps when it finds a duplicate. It has to be a 1 to 1 match when clicking.
No reason in particular other than it’s worked for me in the past. How would I write the code for Strict Selector? I was struggling with that earlier and could not figure it out…
@Anil_G - I’ve seen maybe 5 different forums with others having this issue where the “variable is not defined in the current scope”. Seems to be a bug.
Ok, I cleared out css selector, and yes I did right click to add the variables. I added “test” as a default value to clear out the error, and the variable does show the correct address in the debugger window. The bot is still unable to find the UI element, just hangs there.
Yes, you are correct!! The UI explorer is pulling non matching data compared to the data table row where the address is contained. The matching data was in a selector called “visibleinnertext”. It was failing earlier because the address the UI was pulling was all on one row, where the “visibleinnertext” had the address formatted as three rows, matching the data table. I was also able to leave the default value blank and use the variable!
Thank you so much for pointing me in the right direction again!! Take care!