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 / Problem in select next...
Power Automate
Unanswered

Problem in select next page

(0) ShareShare
ReportReport
Posted on by 4

when i selected the right arrow as set element as pager its selected the left arrow i do not know what is reason for that please anyone help

Code in Website

wagdy2019_1-1667238785993.png

 

 

Code in Microsoft power automate

div[id="root"] > div:eq(1) > div > div > div:eq(1) > div:eq(1) > div:eq(2) > ul > li:eq(8) > a, html > body > div:eq(0) > div:eq(1) > div > div > div:eq(1) > div:eq(1) > div:eq(2) > ul > li:eq(8) > a

 

wagdy2019_0-1667238585787.png

 

I have the same question (0)
  • MattJimison Profile Picture
    579 Most Valuable Professional on at

    Since the "Next Page" list item has a title of "Next Page" I'd update your selector to the following:

     

    div[id="root"] li[title="Next Page"] > a

     

    You could alternatively key off the css class instead of the title:

     

    div[id="root"] li.ant-pagination-next > a

     

    I removed a lot of the other selectors just because it's likely unnecessary, unless you're concerned there may be 2 paginators on the page. Every li should be a direct descendant of a ul and if the parent div has an ID of 'root' this will find any li inside it with that title.

     


    Find this post helpful? Please mark it as the solution and/or provide kudos so that it will help others in the future.

    Cheers,
    Matt

  • wagdy2019 Profile Picture
    4 on at

    could you tell me what i should put instead of this whole line

    div[id="root"] > div:eq(1) > div > div > div:eq(1) > div:eq(1) > div:eq(2) > ul > li:eq(8) > a, html > body > div:eq(0) > div:eq(1) > div > div > div:eq(1) > div:eq(1) > div:eq(2) > ul > li:eq(8) > a

  • wagdy2019 Profile Picture
    4 on at

    i have put your CSS but still clicked on previos page

    could you tell me what i should put instead of this whole line

    div[id="root"] > div:eq(1) > div > div > div:eq(1) > div:eq(1) > div:eq(2) > ul > li:eq(8) > a, html > body > div:eq(0) > div:eq(1) > div > div > div:eq(1) > div:eq(1) > div:eq(2) > ul > li:eq(8) > a

    wagdy2019_0-1667244626121.png

     

  • MattJimison Profile Picture
    579 Most Valuable Professional on at

    You should be able to use:

     

    div[id="root"] li[title="Next Page"] > a

     

    Make that your new selector for the element and ensure you are replacing the default so that it's not still using the old one.

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

    I would add the aria property into the mix, or I'm not sure your pager will stop at the last page.

     

    So my choice for the selector would be this:

    li[title="Next Page"][aria-disabled="false" > a

     

    Henrik_M_1-1667334848884.png

     

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 252 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 169

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard