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 / How to stop pager on w...
Power Automate
Unanswered

How to stop pager on web extraction?

(1) ShareShare
ReportReport
Posted on by 2

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.

I have the same question (0)
  • VJR Profile Picture
    7,635 on at

    Hi @BrianJenner 

     

    Can you check if you are able to play around with these two options and if it stops.

    Also try the "all available" option. 

    VJR_1-1647314958678.png

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @VJR If the requirement is to extract data from all the available pages, is there any method how to achieve that?

    all.png

  • Henrik_M Profile Picture
    2,021 Super User 2024 Season 1 on at

    Try manually editing the pager element to be:

    button[class="link"][title="Next Page"]:not([disabled])

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Tried this also, will make use of it often in my UI elements 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    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

     

    pager ui element.png

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Did it solve your problem. If yes, please share it. 

  • Henrik_M Profile Picture
    2,021 Super User 2024 Season 1 on at

    That does not look like a very good pager selector. Can you supply the HTML code of the page?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    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. 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    HTML code ->

     

    Screenshot (443).png

  • Henrik_M Profile Picture
    2,021 Super User 2024 Season 1 on at

    And what about when it is on the last page?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 1,027

#2
Valantis Profile Picture

Valantis 809

#3
Haque Profile Picture

Haque 645

Last 30 days Overall leaderboard