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 Automate
Answered

Dynamic drop-down tag

(0) ShareShare
ReportReport
Posted on by 16

I am trying really hard to select a value from the drop-down but haven't succeeded. Because that form contains a lot of drop-down tags with the same IDs (No unique IDs available, and all of them are dynamic),  the only difference between them is the Label tag. 

Is there any way by which I can target elements using label tags in power automate desktop?

 

Html Format of drop down(Example):

 

<tw-dropdown>

<div>

<tw-fieldlabel>

<label>Drop-Down-1

<span>optional</span>

</label>

</tw-fieldlabel>

<div>

<div>

<input type="text">

</div>

<div>

<button>

</div>

</div>

 

 

 

 

  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @Sarthakgarg0562 

     

    Would it be possible to show how the drop down looks like when using inspect option in browser?

  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @Sarthakgarg0562 

     

    Give a try with this selector

     

     

    label:contains("Drop-Down-1") ~ input[type="text"]:first

     

    Nived_Nambiar_0-1681625265384.png

     

    Hope this helps

    Mark it as solution if it resolves your query

  • Sarthakgarg0562 Profile Picture
    16 on at

    Hi @Nived_Nambiar 

    Thanks,

    But it is still not working. 

    It terminates with an error Element Selector not found every time.

    All drop-down have same classes and format instead of label tag. 

     

  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @Sarthakgarg0562 

     

    Could you show the html part of it using inspect option?

  • Sarthakgarg0562 Profile Picture
    16 on at

    Hi @Nived_Nambiar 

     

    It is the same as I have mentioned above. There is no difference only random dynamic classes are there which is changing on every page refresh.

  • Sarthakgarg0562 Profile Picture
    16 on at

    HI @Nived_Nambiar 

     

    Like to add one more thing, If I click on the label or on the division of the drop-down then it will open Sound bar or wifi prompt box accidently.

    I don't know why these problems are coming as I have created so many flows from automate desktop. But never experienced such things

  • Verified answer
    Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @Sarthakgarg0562 

     

    After some tryout, i got the following jquery selector 

     

    div:has(label:contains('Drop-Down-1'))>div input

     

    Hope this helps

    Mark it as solution if it resolves your query

  • Sarthakgarg0562 Profile Picture
    16 on at

    Hi @Nived_Nambiar 

    Thank you very much for your support.

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

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 233 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 227 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 178

Last 30 days Overall leaderboard