Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 5aQ8P5nw+4LCJYV/2ZmZaZ
Power Automate - Power Automate Desktop
Answered

Custom Selector To select different elements in list

Like (0) ShareShare
ReportReport
Posted on 30 Oct 2023 18:15:37 by

I'm having a problem with my custom selector.

 

I have an action to extract the element text and title from a list of elements. It produces the following table.

eloomis_0-1698688976694.png

Then there is a loop to click on the first element (I will add more actions to perform before clicking the next item in the list.)

eloomis_1-1698689015341.png

This is the static selector which I created by just selecting the first element in the list.

 

eloomis_2-1698689161586.png

I modified it by replacing the title and text from my list of elements. 

eloomis_3-1698689208655.png

 

When I use the static UI element, the first element is clicked. But when I try to use the modified element I get this error, although the text of the selector seems to match the static selector identically. Any ideas what is going on here?

eloomis_4-1698689340220.png

Thank you in advance.

 

 

  • Verified answer
    Community Power Platform Member Profile Picture
    on 30 Oct 2023 at 22:36:23
    Re: Custom Selector To select different elements in list

    Thanks @Srini007 and @NathanAlvares24 for the thoughtful suggestions. I ended up finding a solution.

     

    I changed the selector from requiring the text of the element from the extracted table, to rather accepting the title of the element, since I was extracting both from the webpage. This resolved my issue.

     

    eloomis_0-1698704923854.png

     

  • SriniK Profile Picture
    3,025 Super User 2025 Season 1 on 30 Oct 2023 at 20:38:54
    Re: Custom Selector To select different elements in list

    Hi @eloomis 

     

    It's a general bug in PAD that when you pass the variables in Selectors to work you need to enable the Text editor for the selector. On the toggle and pass the Variable value and try

     

    Srini007_0-1698698310735.png

     

     

    If you find this reply helpful, please consider giving it a LIKE AND

    If this reply answers your question or solves your issue, please ACCEPT AS SOLUTION

     

    Regards,

    Srini

     

  • NathanAlvares24 Profile Picture
    1,673 Super User 2025 Season 1 on 30 Oct 2023 at 20:26:33
    Re: Custom Selector To select different elements in list

    Hi @eloomis !

     

    I have replicated the same to try it out.

    NathanAlvares24_0-1698696757119.png

     

    Now, I noticed what the issue you were facing. Hence let me explain to you using two "Display message" actions.

    NathanAlvares24_1-1698696891162.png

     

    Let me explain what is the output of the first display message action:

    NathanAlvares24_2-1698696945453.png

    So as seen above, if I were to use "%NextJob[0]%", I would get both values from both columns. Now, as we know datatables have rows and columns. So here in the syntax, I just mentioned one index and that is only the row. Hence, you get all the values as a datarow which comes in as a list from the first row (as 0 is the first starting index).

     

    Now, let me show you what the next display message action will produce:

    NathanAlvares24_3-1698697220364.png

    So as seen from above, if I were to use "%NextJob[0][0]%", I would get just one value. Now, here I mentioned two indexes that is the first being row and the second being the column. Hence, you get the value of the first row (as 0 is the first starting index) and first column (as 0 is the first starting index).

     

    I hope this helps.

     

    Regards,

    Nathan Alvares

    ----------------------------------------------------------------------------------------------------------------------------------------

    If this helps & solves your problem, please remember to give a "Thumbs up" and "Accept my solution" as it will help others in the future.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard
Loading complete