I used for each uielement activity, it click all the rows correctly but after clicking the arrow icon and clicks all the rows in a table, it stats clicking the rows from the 1st row again in the 2nd page of the table. and if only one row present and now arrow icon present, it click the same multiple times, how to fix this
Please try with Find Children Activity.
Let me know if u still face issue
Thanks & Happy Automation
- After clicking the arrow to go to the next page, refresh the element collection by re-finding all rows again before the next For Each loop or iteration.
- Avoid storing the UiElement list before the pagination. Instead, get the list fresh on each page.
- Add a condition to check if the arrow (next page) exists before clicking it, so it doesn’t try to click when only one page is there.
always re-acquire the rows after page change and handle the “no next page” case separately to avoid clicking same rows repeatedly.
