Inserting Variable Into Selector

Hello! New here and my first question :smiley:

I am going through a table from a website with a Click action. The selector looks like this
1

I want to modify the selector in order to use a variable. In the selector text, at tableRow=‘3’ i would like to insert my variable.

So I created a variable “k” of type Int32. I modified the selector (tableRow=’“k.toString”’) but now i get the error “End of expression expected”. Does anyone know how can i fix this?

Any suggestions are welcome! Thanks!

Hey @VladM

You have to use like this :- <webctrl isleaf='1' tableCol='5' tableRow='"+k.ToString+"' tag='TD'>

Regards…!!
Aksh

2 Likes

The modified selector looks like this now

Hey @VladM

See you have not added plus operator.

Regards…!!
Aksh

1 Like

Haha it worked! Thanks a lot @aksh1yadav !

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