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

Report
All responses (
Answers (