I am grabbing the rows from a table using the find children activity with scope find_descendants.
I am able to grab the UiElements and store them in a collection variable. The filter I am using for the find children activity is: "<ctrl name=“Row *’ role=‘row’ />”
Once I have the collection, I use a for each loop to loop through each item and click the row in the table. In debug mode, the collection shows three items correctly (Row 0, Row 1, Row 2) and clicks each one correctly.
When I execute the project normally, the first row (Row 0) gets selected correctly. Once the loop tries to grab the next UiElement in the collection, UiPath errors and gives me an exception due to not being able to find UiElement “Row -1”.
I am not sure if this is a bug or if there is a reason the loop is trying to grab “Row -1” when running normally but then correctly grabbing “Row 1” and then “Row 2” when working in debug mode.
Any help is appreciated.