We have automation use case in that we need to click 25 rows in website table using get attribute value and retrieve some values from the each row in in for loop and after 25th row come out of the loop (Not completely ) it should stay in outside do while and check element is existence and if it is there go to for each and execute again 25 times , it should continue until do while condition met .
Please advice the below approach is correct ??
Since I am using in break in if condition so entirely it is comes out of the for loop and do while and close the entire process .

