I have a Desktop Flow and am trying to extract data (a table) from a webpage using a pager using the Recorder function. There are several pages and once it reaches the end, it keeps trying to click on the pager even though the link is gone and the last page has been reached. I can see that once the final page is reached, the code goes from "<button class="link" title="Next Page">›</button>" to "<button class="link" title="Next Page" disabled="">›</button>"
How do I get the pager to stop? I tried to stop once UI element <button> disappears but it doesn't work, I think because the button doesn't actually disappear, it just gets disabled once the end is reached. Is there any other way to stop attempting to use the pager, such as if nothing on the site changes for a period of time? Thanks.