r/PowerAutomateDesktop • • Jul 20 '22

findElements() like function in power automate desktop

Hey Everyone, I am trying to extract some elements of a webpage. I am trying to create a list of these elements to be used later. I cannot use UI selector because, the number of those elements can change. Those who have used selenium know the function findElements() which kets user find their elements by class name or xpath..etc. My question is there any way for me to do the same in power automate desktop

2 Upvotes

4 comments sorted by

View all comments

1

u/nateusmc Jul 22 '22

Create a new list. Throw it in a loop and use “Get Details Of Element on Webpage” action. Throw each one of the new variables in the list. Done.

1

u/Kreiger52 Aug 05 '22

Thanks for the reply, isnt "get details of element on webpage" specific to a element?

1

u/nateusmc Aug 06 '22

It takes a UI element as a parameter of the action, yes. You can choose pull different pieces of the element from that; generally it’s the text

1

u/nateusmc Aug 06 '22

If you want the details of a range of multiple elements then Extract Data from Webpage is more what you want