in this example after the fetching the last page data my loop is going to in infinite and i dont able to break the loop , if anyone knows please help !
You can use break loop condition