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 / Multiple Selectors not...
Power Automate
Unanswered

Multiple Selectors not working

(0) ShareShare
ReportReport
Posted on by 10

Hello dear Community.

I am trying to click on one of 4 possible Elements in a browser.
If the first "Room" is not available I want to automatically try the next one until one works.
This is what I came up with:

jotas_0-1681161058261.png

Every selector looks the same, just the room parameter gets increased.
I thought when having multiple Selectors PAD will run through them from top to bottom until one works. But apparently this is not the case, since in my example Room3 should work but when I run it, I only get this error.

jotas_1-1681161231247.png

As soon as I deactivate the first two selectors, the whole process works...
How do I fix this? How can I make PAD run through all the selectors until one works?

Thanks in advance,
Robert

I have the same question (0)
  • Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at

    Hi @jotas 

     

    Is the selector issue is occuring at 1st selector or 2nd selector ?

     

  • jotas Profile Picture
    10 on at

    When I manually test them, Selector 1 and 2 don't find results if that is what you mean

  • PeterPeng Profile Picture
    7 on at

    Looks like it ran through all the 4 selectors already, see the error details, 4 selectors in single quotes and separate with comma, maybe you should double check your selectors.

  • jotas Profile Picture
    10 on at

    I double-triple checked everything. Like I said, as soon as I deactivate the first two selectors, it works.
    It also works when I move the third selector to the top of the selectors.

    That tells me, that the program does not run through all selectors but rather only the first of the list.
    Do you have any other ideas what the issue might be? Do you need any other information that I might be able to provide? I really need this to work..

    Should I instead use the function "If web page contains" to run through the 4 possible Elements that I am looking for instead of using 4 Selectors?

  • PeterPeng Profile Picture
    7 on at

    Please try to use "Wait for web page content" with all 4 selectors, and then use "If web page contains" 4 times with each single selector

    wait for web page content : 4 selectors

    if web page contains : selector 1

        do something...

    end

    if web page contains : selector 2

        do something...

    end

    ...

  • jotas Profile Picture
    10 on at

    I tried it with wait for web page content as you can see here

    jotas_0-1681320546728.png

    Nothing happens.
    And when I test the single Selectors it works

    jotas_1-1681320704416.png


    Now I just used the "If web page contaings" solution 4 times with the 4 different selectors and this works, even though it's not as fast as I hoped it would be. Thanks for trying to help

  • Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at

    Hi 

     

    I have one question regarding the selector option you have in your power automate , i could not see this highlighted option in my PAD 

     

    Nived_Nambiar_0-1681322075212.png

     

     

     

  • jotas Profile Picture
    10 on at

    I am sorry but what is the question? I am using the current PAD version and there I have these options when editing an UI element

  • Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at

    Hi @jotas 

     

    I couldn't find the same option , i am using PAD 2.30.109.23075

     

     

  • jotas Profile Picture
    10 on at

    Hello @Nived_Nambiar 
    I am using PAD 2.31.100.23089
    Very handy testing option

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

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard