Owner Drawn Combobox MSAA

Ask general questions here.
krause
Posts: 2
Joined: Tue Jul 10, 2018 8:00 am

Owner Drawn Combobox MSAA

Post by krause » Fri Aug 10, 2018 2:13 pm

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_path.PNG (3.12 KiB) Viewed 109 times
ranorex_spy.PNG
ranorex_spy.PNG (7.29 KiB) Viewed 109 times
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
ranorex_studio.PNG (22.58 KiB) Viewed 109 times
Thanks in Advance
Sven

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 3921
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Owner Drawn Combobox MSAA

Post by odklizec » Fri Aug 10, 2018 2:33 pm

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? ;)
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

krause
Posts: 2
Joined: Tue Jul 10, 2018 8:00 am

Re: Owner Drawn Combobox MSAA

Post by krause » Fri Aug 10, 2018 3:30 pm

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.