Skip to main content

Notifications

Power Automate - Power Automate Desktop
Answered

Custom UI element selector

(0) ShareShare
ReportReport
Posted on by 75

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
    eetuRobo 2,687 on at
    Re: Custom UI element selector

    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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,445

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,741

Leaderboard