Hello,
I've built a simple Power Automate flow where i open a website, extract everything in a html table which is across several pages and then when it reaches the last page it saves the results in an Excel file.
The issue I'm having is that when the flow reaches the last page on the website, it doesn't stop and keeps going try to find the next page, like its looking for the 'Next' button but its not there.
Here is my flow:

Here is the CSS selector for next page of search results
div[id="app"] > div > div:eq(3) > div > a:eq(1) > button, html > body > div:eq(1) > div > div:eq(1) > div > div > div:eq(3) > div > a:eq(1) > button
How do I tell the CSS selector for next page of search results to stop when there is no 'Next' button so that it then moves to the next step and saves the result in Excel?
Regards,
Mark