I have several similar elements on the screen (they change and are dynamic, this is an address icon)
I want to count how many labels I have on each entry to this page
I saw that there is an activity called for each UI element
I tried to assign in it with a variable called counter but it doesn’t count it.
When I debug I see that every iteration there is a value called currentindex that goes up every time by one, I actually need this value.
How can I perform this?
You can use datascrapping or extractTable activity to get all the elements and then use dt.RowCount
Or use a for each Ui Element and inside that use an assign activity and assign the currentindex value to a variable of type int32 and after the loop the count of the variable will be equal to the count of elements