Place variable in restricted selector tag

I’m thinking of a solution that would be to change the table row tag using a variable as a counter, to change the elements. how can I do this? Can I put a variable inside this tag?

look

as described here:

We would also recommend modifying the project settings and configure:

Hi Amanda,
You can do that. In that case can you just try and check just by using tableRow=‘{{Index}}’ but make sure the variable item is of type String else you would need to convert it to a String and store it in another variable and use that variable.

Hope it helps you!

Hello @amanda.gondim

→ when you are indicating in the selector option check the strict selector and uncheck the fuzzy selector, computer vision and image.
→ In the Strict selector click on UI explorer option then one UI explorer tab will opened in that select the value for the attribute you want to pass the variable.
→ In your case it is table row, select the value and click on right then select the Select variable option, select the count variable and click on validate.
→ Click on confirm for element indication of click activity.

You have passed count variable to the table row attribute.

Hope it helps!!

@amanda.gondim Yes, you can use variables within selectors to dynamically change elements such as table row tags based on a counter or any other variable value.

Let’s say you have a table with rows that you want to interact with using UiPath. The selector for a row might look like this:
image

After dynamically change elements The selector for a row might look like this:
image