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 / Parse text from websit...
Power Automate
Answered

Parse text from website using CSS Selector

(0) ShareShare
ReportReport
Posted on by 93

Hello community,

 

I am a little stuck while trying to parse a text field from a web site.

 

How to use the CSS Selector for this? Does anybody have experience?

 

While inspecting the website, I get the following content:

Tobias_S_0-1647440124115.png

 

The respective element (text) is the following:

Tobias_S_1-1647440124117.png

 

How to fill the following fields with the information above to grab a "single value" (the text)?

Tobias_S_2-1647440326240.png

 

Can someone please help me out?

  • ChristianAbata Profile Picture
    8,953 Most Valuable Professional on at

    hi @Tobias_S  first you need to add javascript action. Then

     

    function ExecuteScript() { document.querySelectorAll('CSS-Selector').class }

     

    Use queryslector to select the component and change the last propertie trying to get the value behind that component

  • Verified answer
    VJR Profile Picture
    7,635 on at

    Hi @Tobias_S 

    During the extraction you can right click on the element you want and then get its Text and the CSS will automatically be generated for it.

    This video could be of help. If you don't need a table just extract it only once.

     

  • Tobias_S Profile Picture
    93 on at

    I used the right click. But there is no rectangle on the text field but on the field around (including the headline of the text field). The text itself is not able to be grabbed alone. It is the only field on the website making trouble. Another field next to the problem making area having the same "settings" is divided in "box: headline + text" or "text only". Here I can right click and name the field correctly.

    So I tried to find it with Edge Website Inspector.

     

    I will try what @ChristianAbata explained and come back with the results.

  • Tobias_S Profile Picture
    93 on at

    In the meantime I found a solution: using the subtext function to recude the fixed text from the variable text that I want to grab 🙂

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
Mohsin Ali Profile Picture

Mohsin Ali 355

#2
11manish Profile Picture

11manish 336 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard