Find Children Row number

Hi, i have a find children activity and i need the current Row number which the bot is currently reading, how do I get this information?

1 Like

Hey @NHoe

Which type of UiElement is yours (on which you are using Find Element)

Table or grid or dropdown ?

Could you also please show a snap of it…

Thanks
#nK

i think it is a grid, but iam not shure


1 Like

So, Is your requirement is to get the iteration number of for-each ?

Like,
For first element it will be 0
For second element it will be 1

Could you please confirm ?

unfortunately no, the For Each only gives me the visible text

1 Like

I just made a mark in your image, please check above…

Use a variable to store that index value.

Inside for-each print it in log message by adding 1 to it.

Thanks
#nK


Please show this

1 Like

Number + 1

Print the above in log as you already halfway did (just add +1)

See the output whether it is printing your row numbers as required.

it gives me the right number and how can I tell it to click this entry?

1 Like

Use click activity and pass your foreach element to it in the element property of click activity.

This should help.

#nK