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 / Web Extraction CSS sel...
Power Automate
Unanswered

Web Extraction CSS selector content

(1) ShareShare
ReportReport
Posted on by 2

Hello all,

 

There is a tutorial about how to extract the data from different elements from the web page.

Power Automate Desktop - Web Extraction Part 1 | Price extraction from web page - YouTube

 

I had a quick test in my environment, however I couldn't find the right content of CSS Selector at minute 3:12.

The original content of the selector is: a > div:eq(1) > div > div > span:eq(2) > span:eq(3)

(As you can see in the video, the product that doesn't have a promo price would be blank)

pad1.PNG

 

 

 

 

 

 

 

 

 

 

I modified the content to: a > div:eq(1) > div > div > span:eq(2) > span:contains("$")

And it would show me the full price of all products. 

pad2.PNG

What I want is the current price, and it should be flexible field as you can see in the video.

Could somebody help me please? Thanks!

  • TejaswiniG Profile Picture
    Microsoft Employee on at

    Hello @ttyc ,

    Instead of using: a > div:eq(1) > div > div > span:eq(2) > span:contains("$") 

    try to use:

    a > div:eq(1) > div > div > span:eq(2) > span[content^="$"]

    As you can see from the below screenshot, the CSS element "Content" that starts with ''$" matches for the price of all products

    TejaswiniG_0-1617175760596.png

     

    I hope this helps!

  • Autoknight Profile Picture
    2 on at

    Is there a way to accommodate multiple CSS selectors for the same value - so that if one selector element has no value or is empty, the value gets picked automatically from the second fallback CSS selector. In short, can we have something like this in the CSS selector field:

     

    a > div:eq(1) > div > div > span:eq(2) > span:eq(3) OR a > div:eq(1) > div > div > span:eq(2) > span:eq(2)

    a > div:eq(1) > div > div > span:eq(2) > span:eq(3) | a > div:eq(1) > div > div > span:eq(2) > span:eq(2)

     

     

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

    Try separating your selectors with COMMA (,)

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 321 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 271

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard