web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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!

I have the same question (0)
  • 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 523 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard