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 / Extract the names whic...
Power Automate
Unanswered

Extract the names which contain a UI selector

(0) ShareShare
ReportReport
Posted on by 20

I have the following UI element selector:
table > tbody > tr > td > div > div > div > button > span > span > i[Class="fas fa-spinner fa-xs"]
this is called 'Specific Icon' in the UI elements list

 

When this element is present on the webpage, I want to get the names of all the buttons that contain this UI selector (every new name should appear as a new row when written to Excel)

 

How can I do this, and which would be the easiest way to do it?

 

FlashDota_0-1711292777763.png

 

  • CU16071609-1 Profile Picture
    6,255 Moderator on at

    @FlashDota Could you please elaborate your use case? So that we can assist you on more appropriate way.

     

    In the interim, you can consider the following suggestions if they resonate with you.

     

    Begin by verifying whether the element is present on the webpage using the "If web page contains" action. If it exists, proceed to extract the entire webpage source using the "Get details of web page - with get web page source" action. Then, utilize parse/split actions to retrieve the necessary button details from the table.

     

    Deenuji_0-1711336244019.png

     


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀. If you'd like to appreciate me, please write a LinkedIn recommendation 🙏

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Try using the following JavaScript script in a Run JavaScript function on web page action:

     

    function ExecuteScript() {
     var names = [];
     var elements = document.getElementsByClassName("fas fa-spinner fa-xs");
     for (i = 0; i < elements.length; i++) {
     names.push(elements[i].textContent);
     };
     return names;
    }

     

     

    And then use Split text on the output to get it into a list that you can write to Excel.

     

    Please note you may need to use a different argument than .textContent, depending on the specific value you're trying to extract. Quite hard to be more specific on my part without seeing what the element looks like.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 227 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 213 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 151

Last 30 days Overall leaderboard