Hi All,
I am using For each excel row for robot to pick up IDs form each row and enter website and click drop-downs on table. table can have multiple pages and rows.
I use find Childred activity to get number of pages. Then i pass it to while condition. the condition is - pageCount > 0. after while actions i decrement the pageCount by 1.
so after action my pageCount is 1. it never goes to 0. thats why it does not end. however when i put pagecount >1 or decrement PageCount by 2 then robot does not action the last page.
do you know how I can solve this?
You’re using the same variable pageCount both to hold the total number of pages and to control the loop. This caused the last page to be skipped or the loop to run indefinitely. It can be fixed by introducing a new variable currentPage, initialized to 1, and looping with the condition currentPage <= pageCount. This way, the robot visits all pages properly and exits the loop correctly.
Cheers
thats so smart! how come i couldn;t think of this myself. thanks so much!
but i got a solution in a different way by using element exists and passed to selector of element exists the same from “Select Menu Item” activity. it worked
Thats so clever you’re, first asking for solution and solving it yourself and marking your own solution as Solution. Nice 