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 Platform Community / Forums / Power Automate / How to click dynamic U...
Power Automate
Answered

How to click dynamic UI element in window?

(0) ShareShare
ReportReport
Posted on by 17

Hi Dear,

 

I have a issue on capture a dynamic UI element in PAD, I'd like to deal with dynamic IDs and do a change in system based on the respective ID, so I change UI element with yellow(there is a space after UI element), but it doesn't work...could you help on this issue?

 

Selectors of UI Elements.PNGError message.PNG

I have the same question (0)
  • Srini007 Profile Picture
    3,483 Super User 2026 Season 1 on at

    Hi @Jack_32782047 

     

    As you set the variable of PR and it is returning value 0, So if you want to click if the name is PR then you can Select Starts with and in the value just put PR and try

     

    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

     

    Thanks,

    Srini

     

     

  • Jack_32782047 Profile Picture
    17 on at

    Hi Srini,

     

    thanks for help.

    I had a try, but the issue is still there...

    the output of the variable is the first PR# in list.

    123.PNGList.PNGValue of variable.PNG

     

  • Srini007 Profile Picture
    3,483 Super User 2026 Season 1 on at

    Hi @Jack_32782047 

     

    In the selector if you closely look there was some difference in the Name, it shouldbe only Name not the Name^

     

    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

     

    Thanks,

    Srini

  • Jack_32782047 Profile Picture
    17 on at

    Hi Srini,

     

    Thanks, as you said I change operator to 'start with', so Name^ showed in preview field...

    if change it back to 'equal to', will be only Name.

  • Srini007 Profile Picture
    3,483 Super User 2026 Season 1 on at

    Hi @Jack_32782047 

     

    Oh sorry, as you are passing the entire value, then you don't need of selecting the start with, it will be equal only

    Maybe the value you are passing from Excel is getting as some whitespaces, so after the value you can place trim text action, so that it will remove any unwanted spaces, can you try with this?

    Also, before click uielement place some delay as well

     

    Regards,

    Srini

  • Jack_32782047 Profile Picture
    17 on at

    HI Srini,

     

    Thanks.

    When I captured UI element from window, the UI value is PR# with a space, see below...

    So I put a space after variable:''%PR% '' .....

    PAD doesn't allow 'variable+space' as a value?

    space.PNGspacesssss.PNG

  • Verified answer
    Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    It's a common bug in PAD that variables in selectors do not work, unless you enable the Text editor for the selector. Please enable this toggle and then pass the variable value. It should work then.

    Agnius_0-1697544768095.png

     

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 482

#2
11manish Profile Picture

11manish 280

#3
David_MA Profile Picture

David_MA 268 Super User 2026 Season 1

Last 30 days Overall leaderboard