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 extract links f...
Power Automate
Answered

How to extract links from items in pages ?

(0) ShareShare
ReportReport
Posted on by 68

Hi

 

I have items in pages web page. each page has image and text but the problem when I right click on the element I cant find href which I want to collect :

 

William5234_0-1698358510233.png

 

The CSS selector is

div.flex-item:nth-child(1) > a:nth-child(1)

 

CSS path is very long

 

xpath is :

/html/body/div[1]/section[3]/div/div/div/div/div/div/div[2]/div[1]/a

 

The link I want to extract has this form:

<div>
<a class="mylink" href="https://mysite/item1">
<img>
<p> text </p>
</a>
</div>



the pagination look like this: 1   2   3 it is javascript so no loading.

 

 

William5234_1-1698359032139.png

 

Should I select list or table ? What I should write in these parameters to get all href links ?

 

Thanks

 

 

 

I have the same question (0)
  • UshaJyothiKasibhotla Profile Picture
    225 Moderator on at

    Please refer below link

    https://learn.microsoft.com/en-us/power-automate/desktop-flows/how-to/links-open-new-tabs

     

    Hope this helps

    Usha

  • Verified answer
    Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    You are probably right clicking the wrong element and that's why it doesn't have the href. You might be targeting a child, a parent or a sibling of the <a> element that actually contains the href.

     

    If you cannot capture it via the live web helper, you might as well put in the xpath into the Base CSS selector via the advanced options. You just need to modify it slightly as the syntax in PAD is different. It should look like this:

    html > body > div:eq(1) > section:eq(3) > div > div > div > div > div > div > div:eq(2) > div:eq(1) > a

     

    You don't need to do it as a list, unless you expect to get more than one item within a single page, in which case extracting it as a list makes sense. If that is really the case, you will actually need to shorten the Base CSS selector a bit and put some of the XPath into the CSS selector field. But I cannot really tell you exactly how to do that without seeing the full structure of the page, or what the XPath for the next element looks like.

     

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 378

#2
Valantis Profile Picture

Valantis 329

#3
David_MA Profile Picture

David_MA 283 Super User 2026 Season 1

Last 30 days Overall leaderboard