web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Web extract on multipl...
Power Automate
Unanswered

Web extract on multiple pages tries to continue on last page

(0) ShareShare
ReportReport
Posted on by

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:

mkwiatkowski_0-1646304109927.png

 

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

 

  • VJR Profile Picture
    7,635 on at

    See if you are able to play around with the selectors and achieve...

    Else have an error handler such that if there is any error coming out from that action, then continue the process without throwing the error.

  • UK_Mike Profile Picture
    on at

    "Some" websites stupidly have a next page even though there isnt any more pages, annoying I know.

    As VJR said, if on error continue flow is the quickest workaround, edit the selectors after that...

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 426

#2
11manish Profile Picture

11manish 308 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 159

Last 30 days Overall leaderboard