Page 1 of 1

Owner Drawn Combobox MSAA

Posted: Fri Aug 10, 2018 2:13 pm
by krause
Hi Everyone,

i have an win32 native Application (or to be precise a wxWidgets Based) Application.
Because standard editable combox is not case sensitive, we decided to use an owner-drawn-combobox.

Unfortunately this is not recogniced very well by Spy and the recording tool of Ranorex Studio.

So i provided an MSAA Implementation for this element (COMBOBOX_ROLE,LIST_ROLE,LISTITEM_ROLE etc).
ranorex_path.PNG
ranorex_spy.PNG
My Problem is the the popup-window will always be recognized by the controlid instead of the accesiblename.
This will lead to problems, because the controlid changes dynamically.

Is there a way to configurue Ranorex to use the accessiblename as path instead of controlid for a popupwindow ?
ranorex_studio.PNG
Thanks in Advance
Sven

Re: Owner Drawn Combobox MSAA

Posted: Fri Aug 10, 2018 2:33 pm
by odklizec
Hi Sven,

Sure, there is way to instruct Ranorex to prioritise different attribute, using xpath weight editor. Take a look at this blog post...
https://www.ranorex.com/blog/automated- ... namic-ids/
Hope this helps? ;)

Re: Owner Drawn Combobox MSAA

Posted: Fri Aug 10, 2018 3:30 pm
by krause
Thanks for the answer.

I already saw the weight settings, but have overseen to set the weight for native windows
It seems my problem is been solved now.