I am trying to use a dynamic selector for ‘get text’ activity in UI Path, but it is not working. I am trying to store the selector string in a variable and using the variable in the selector property of ‘get text’ activity. Here is my selector string. Please help!
I am not getting any error. But, it is not giving me the right results. rowNum is the row number variable that needs to get the data from each row. So it should give me the data from row 1, 2, 3,4 … But it is getting only the data from row 1.
Yes, I am incrementing the rowNum as it is already inside the forEach loop. I am using data table and then forEach loop. This rowNum variable is incrementing inside the for each loop
Make sure that the rowNum or the variable that you use in the Selector is a String Variable.
If the rowNum variable is an Integer variable, you can use/create another variable str_rowNum. Assign the rowNum value to it using Assign Activity in the below way, you can then use it in the Selector :