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 / 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

 

I have the same question (0)
  • Deenuji_Loganathan_ Profile Picture
    6,250 Super User 2025 Season 2 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

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard