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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Extract data from mult...
Power Automate
Answered

Extract data from multiple pages get stuck on pagination

(0) ShareShare
ReportReport
Posted on by 5

Hello, I've succesfully built my flow on PowerAutomate Desktop in order to scrape data from web. It works like a charm until i try to scrape data from multiple pages. Infact when the flow reaches last page I see the "next page" button (which is not clickable but still present in the html) blinking and flow can't be completed. How to deal with it?

I have the same question (0)
  • fraenK Profile Picture
    2,125 on at

    What's different in the html code between the previous pages and last page regarding the next page element? You probably need to modify the selector to include the <a> element, if this is missing on the last page.

  • Ignus Profile Picture
    5 on at

    Here the difference in html: 

     

    <ul class="pull-right pagination">
    <li><a href="https://www.somedomain.com/page2" title="Next Page<span class="piped-left icon-text-group">
    
    <svg width="14" height="14" class="icon-svg">
    <use xlink:href="#arrow"></use>
    </svg> <span class="visible-xs">Next</span>
    </span>
    </a></li>
    
    <li class="disabled"><a role="button" class="disabled" onclick="return false"> <span class="piped-left hidden-xs">
    
    <svg width="14" height="14" class="icon-svg">
    <use xlink:href="#double-arrow"></use>
    </svg> </span>
    </a></li>
    
    </ul>

     

    last page :

     

    <ul class="pull-right pagination">
    <li class="disabled"><a role="button" class="disabled" onclick="return false"> <span class="piped-left icon-text-group">
    
    <svg width="14" height="14" class="icon-svg">
    <use xlink:href="#arrow"></use>
    </svg> <span class="visible-xs">Next</span>
    </span>
    </a></li>
    
    <li class="disabled"><a role="button" class="disabled" onclick="return false"> <span class="piped-left hidden-xs">
    
    <svg width="14" height="14" class="icon-svg">
    <use xlink:href="#double-arrow"></use>
    </svg> </span>
    </a></li>
    
    </ul>

     

    the selector I'm using on it: ul.pull-right.pagination > li:nth-child(1) > a[href] 

    also tried with ul.pull-right.pagination > li:nth-child(1) > a[href*=http]

    or ul.pull-right.pagination > li:nth-child(1) > a[title] but nothing changes

  • Verified answer
    fraenK Profile Picture
    2,125 on at

    You need to include that the class of element <a> is not equal to "disabled"

  • josephblake3 Profile Picture
    6 on at

    🙄

  • josephblake3 Profile Picture
    6 on at

    Thank you, but how/what?

     

    My page goes to page 29 and the next button doesn’t go further but I don’t know how to tell the  selector that.

     

    This what I have in my CSS Spector field in Advanced Settings: 

     

    table[id="ctl00_Body_WaitListRadGrid_ctl00"] > tfoot > tr > td > table > tbody > tr > td > div:eq(2) > a:eq(0) > img, html > body > form > div:eq(2) > div > div:eq(3) > table > tfoot > tr > td > table > tbody > tr > td > div:eq(2) > a:eq(0) > img

     

    It works great for fewer pages or the first page. Any help would be much appreciated. 

  • kjhaveri Profile Picture
    2 on at

    Hi,

    I am also facing the same issue in my website from where i have to scarp data the bot is always pressing next button after reaching the last page number . please help me out hot to stop that

  • Mukram Profile Picture
    2 on at

    Hello, I've succesfully built my flow on PowerAutomate Desktop in order to scrape data from web. It works like a charm until i try to scrape data from multiple pages. Infact when the flow reaches last page I see the "next page" button (which is not clickable but still present in the html) blinking and flow can't be completed. How to deal with it?

    16535204623181248322613924273341.jpg

     

  • robertmc Profile Picture
    9 on at

    Hello! Can you advise how you were able to solve this? I'm having the same issue. 

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Don't use the pager functionality in Extract data from web page. It doesn't work with most pages. Build a loop and extract each page individually. See this tutorial for reference: https://www.youtube.com/watch?v=yvoUBwCqdn0&ab_channel=AndersJensen 

  • robertmc Profile Picture
    9 on at

    That worked perfectly. Thank you so much for sharing!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard