Add variable in selector

Two issues that I came across

  1. Notice the difference in the single quotes that is in the selectors for Div - between the one captured by UiPath and one pasted by you. That was one issue. Correct that and you should be not be getting the Json.Linq error.

image

  1. Even if you had solved that, the model name in aaname attribute in the selector is in title case, where as your excel has everything in caps. Also there is an extra space after the model name. You can change the case and add a space after the model name like this
    StrConv(row("Model").ToString, VbStrConv.ProperCase) + " "
    or use * in the selector to avoid any characters after the model name.

This should get your issues resolved.

1 Like

Excellent nadim. Real Master :slight_smile:

1 Like

Thanks dude. its working now.

2 Likes

Hi everyone,

You can now define your variables for selectors directly in Studio.

Please check our official documentation here:

As well as this short tutorial on our Forum:

I took the liberty to change the solution flag to this post to let our users know about this feature :slight_smile:
Old solution post is this one.