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 / Custom UI element sele...
Power Automate
Answered

Custom UI element selector

(0) ShareShare
ReportReport
Posted on by 77

Hi guys,

 

I am scraping data from a website once a week and the records are different each week.

 

Each page contains 100 records, and it can go up to 1000 pages. I want to get the last page number so that it can be used in the "Loop condition" action. 

 

nicklimcs_3-1717727227349.png

 

So far, the custom selector is only able to detect "Previous". I tried "li[4]" and "li > li > li > li > li" but couldn't get it work. 

nicklimcs_5-1717727699316.png

 

 

Website Element:

nicklimcs_6-1717727869877.png

 

URL: umarbutler/open-australian-legal-corpus · Datasets at Hugging Face

  • Verified answer
    eetuRobo Profile Picture
    4,607 Super User 2026 Season 2 on at

    Try this:
    body > div > main > div > div > div > div > nav > ul > li:nth-child(6)

     

    Toggle on the text editor and just paste that to you Default selector in text editor mode

    eetuRobo_1-1717740537256.png

    eetuRobo_2-1717740638441.png

     

    Test flow:
    eetuRobo_0-1717742489170.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

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 307 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 289

#3
Henil Profile Picture

Henil 127

Last 30 days Overall leaderboard