Custom accessible name, description is not visibl in Ranorex

Ask general questions here.
sivakumaran
Posts: 20
Joined: Fri Dec 18, 2015 8:07 am

Custom accessible name, description is not visibl in Ranorex

Post by sivakumaran » Mon Feb 06, 2017 7:27 am

dear all,
I have a query.

I have a Microsoft property grid control
I wanted to provide my own Acc name and description for this grid conrol
I derived MyPropertyGrid from Property grid
I overridden CreateAccessibilityInstance() method to return an custom Accessible object
My custom accessible object is MyPropGridAccObject that is derived from ControlAccessibleObject
my overridden Acc name and Acc description do appear in the Microsoft tool Accessibility explorer
but it is not available to Ranorex spy tool.
so I doubted it could be the problem with this specific property grid control
so I tried with a simple button control on similar lines
but nothing worked
I am attaching the source code that I tried.

Can you please tell me, what is wrong that I am doing?

thanks,
Siva
Attachments
Form1.cs
CustomAccessibilityImplementation
(6.54 KiB) Downloaded 35 times

asdf
Posts: 174
Joined: Mon Mar 21, 2016 3:16 pm

Re: Custom accessible name, description is not visibl in Ranorex

Post by asdf » Wed Feb 08, 2017 4:15 pm

Hi sivakumaran,

May I ask you which tool you used to verify the accessible name? Unfortunately, I can't find the "Microsoft tool Accessibility explorer".

Kind regards,
asdf

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

Re: Custom accessible name, description is not visibl in Ranorex

Post by odklizec » Thu Feb 09, 2017 8:21 am

Hi asdf,

It's called MS Inspect and it was discussed for example here:
http://www.ranorex.com/forum/how-to-ide ... tml#p17635
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

asdf
Posts: 174
Joined: Mon Mar 21, 2016 3:16 pm

Re: Custom accessible name, description is not visibl in Ranorex

Post by asdf » Fri Feb 10, 2017 3:22 pm

Hi odklizec,

Thanks for clarification.

I created a sample application according to your needs and I found out that you are able to see the "new" accessible name when you set the following MSAA setting in Ranorex Studio to false.
MSAA.png
MSAA.png (3.95 KiB) Viewed 583 times
You can just download my sample application, turn off the above setting and track the button in the sample.
You will see that there is a second button in the Spy which has the newly set accessible name.

I hope this helps.

Kind regards,
asdf
Attachments
ChangeAccessibleName.7z
(20.11 KiB) Downloaded 27 times