UiPath - WebSite - Dynamic Selector

Hi,

In following selector line I need to replace number 3 in [3] with vcActiveContractIdx:

webctrl id=‘C21_W63_V65_V66_searchresultnode_table[3].a3extref’ tag=‘A’ /

Can somenone help me with syntax for this dynamic selector?

Thx and kind regards,
Vanja

HI @VanjaV

You can declare a string variable and prepare your selector in that string, then pass it in the actual selector.

Thanks,
Prankur

I have tried it this way:
[‘{{vcActiveContractIdx}}’]

and this way:
image

but it does not work.

HI @VanjaV

What you need to do is

You should declare a variable instead of 3 like this

You can look into this thread for steps

Regards
Gokul

3 Likes

Try with + on both sides intead of {{}}

@VanjaV

Can you tell me what this variable contains? vcActiveContractIdx

Thanks

Thank you @Gokul001 very much, your suggestion worked! :slight_smile:

image

Thanks to everyone else for suggestions.

Kind Regards,
Vanja

Hi @Srini84 , it contains number.toString, in my test case number 5.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.