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 / failed to get UI eleme...
Power Automate
Unanswered

failed to get UI element & selectors

(0) ShareShare
ReportReport
Posted on by

Hello,

 

I've been slamming my head into a wall for a couple of days trying to figure out how to use selectors for a particularly stubborn UI element. Its a sub menu inside the MicroStation Connect CAD program if that helps. When adding the UI element PAD seems to be able to automatically record most items in this box just fine, however, it can't seem to interact with anything using selectors it comes up with except the title bar (minimize, maximize, close buttons).

 

As far as trouble shooting goes I was able to use Accessibility Insights for Windows to see all the parameters of any of the elements I wanted to click, and that program is able to successfully simulate a click using it's test feature. I can't see where PAD has any troubleshooting features at all to help?

 

What the automatic recorder comes up with:

> window[Id="HostForm"] > pane[Name="Reports"] > pane > window[Id="ECReporting"] > pane > pane[Class="Pane"] > toolbar[Class="RadToolBar"][Id="m_toolbar"] > button[Class="RadButton"][Id="Cmd_CreateCategory"]

 

What I was able to build from Accessibility Insights:

> window[Id="HostForm"] > pane[Id="331332"] > pane[Id="396788"] > window[Id="ECReporting"] > pane[Id="332092"] > pane > toolbar[Id="m_toolbar"] > button[Id="Cmd_CreateCategory"]

 

I used AutomationId where available in this example as it seems to be the most precise method of selection, please correct me if that reasoning is off base. I have tried using several of the other tags though... Just at a loss and with little documentation on how selectors even work beyond how I would intuitively think they would... I'm just not sure if I'm even heading in the right direction for solving this. 

 

Other help posts I've read on the topic seem to be issues with dynamic parameters changing between recording and action, but I really don't think that is the case here.

 

Sincerely thank you for any help or insight you can provide!

 

Thanks,

Will

  • miketran13 Profile Picture
    720 on at

    Hi Will,

     

    I can't give you any answers or solutions for this problem since I got same problems with the UI Elements and selectors before. I could not figure out whats wrong. And also there was not much documentation and examples for that. 

     

    I ended up with other workaround solution for myselft by using the Wait for Image and If Image exist to indicate that the page contains the element. 

    Then I used the combination of Send Hotkeys with a lot of Send Hotkeys actions mainly is sending Tab and Enter key to find the element that I want to click or enter the value. 

    That is my thoughts, please share your thoughts if you have any ideas.

     

    Thanks and hope it can help you. 

    Mike

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

    Did I answer your question? Please consider to Mark my post as a solution! to guide others

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 249 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 202

#3
David_MA Profile Picture

David_MA 180 Super User 2026 Season 2

Last 30 days Overall leaderboard