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.
Tried to use it yet it was still clicking on the last page and this would not step.
For better understanding, some mistake is done from my side. The pager css selector is:--> div[id="contacts-b-b-grid-paging-toolbar-next"] > div > div > div > img, html > body > div:eq(1) > div > div:eq(1) > div > div:eq(0) > div:eq(1) > div:eq(0) > div > div:eq(1) > div > div:eq(1) > div:eq(0) > div > div:eq(2) > div > div > div:eq(6) > div > div > div > img
The cssSelector manually created is: div[id="contacts-b-b-grid-paging-toolbar-next"]:not([disabled])
But this does not move to the next page. It sticks in the first page only.
Looks like the code doesn't change at all, which is very strange. BUT just Get details of element on web page the text beside the button, and modify your extract to only take first 82 pages (in this case)
Not exactly, the pages are dynamic. Today it is 82 tomorrow there may be increase or decrease. So, this will not be a good solution.