Page 1 of 1

Telerik Grid View - getting the header row text

Posted: Tue Apr 30, 2013 7:26 pm
by gannias
We're using Telerik controls.

The problem is that the text in the header row seems to be unaccessible by ranorex. (Snapshot attached)
I need to get to the text of the cells in the header row.

Image


var grid = mainForm.FindSingle("/form[@controlname='FrmMain']" +
"/container[@controlname='radDockMain']/container/container/container[@controlname='FrmPatientSearch1']" +
"/form/container[@controlname='radGvPatients']/table[@accessiblename='radGvPatients']");

var cellObj = grid.FindSingle("/form[@controlname='FrmMain']/container/container/container/container/form/container/table/row/cell[1]");

Any help would be appreciated.

Re: Telerik Grid View - getting the header row text

Posted: Thu May 02, 2013 8:57 am
by Support Team
Hello,

Unfortunately I cannot find a Ranorex snapshot file.
Could you post it again in order to analyze the issue in detail please?
Thank you!

Regards,
Bernhard

Re: Telerik Grid View - getting the header row text

Posted: Thu May 02, 2013 10:29 pm
by gannias
re-attached the snapshot

Re: Telerik Grid View - getting the header row text

Posted: Fri May 03, 2013 3:53 pm
by Support Team
Hello,

Thank you for your snapshot.

Have you installed Ranorex with all prerequisites by using setup.exe?
Could you please try to download and install the extended version of Microsoft .NET Framework 4?

Please take a look at General Troubleshooting for WinForms in our User Guide.
This might help to solve your issue.

Thank you in advance.

Regards,
Markus (T)

Re: Telerik Grid View - getting the header row text

Posted: Wed May 08, 2013 7:18 pm
by gannias
Yes, I have all the prerequisits installed.

Can you help me get the needed info out of this control?

Re: Telerik Grid View - getting the header row text

Posted: Fri May 10, 2013 4:41 pm
by Support Team
Hello,

Could you please try to get your header text with Microsoft Inspect?
If it was still not possible, UI automation might not be implemented correctly.
Is it possible to get text from other rows?

Another possible way to get this text could be by using GDI.
Please take a look at our User Guide how to add the class/process to GDI Capture List.

Regards,
Markus (T)

Re: Telerik Grid View - getting the header row text

Posted: Fri May 24, 2013 4:35 pm
by gannias
Support Team wrote: If it was still not possible, UI automation might not be implemented correctly.

Regards,
Markus (T)
Hi Markus,

What do you mean not implemented correctly?

Thanks!

Re: Telerik Grid View - getting the header row text

Posted: Mon May 27, 2013 3:19 pm
by Support Team
Hello,

Microsoft UI Automation is the accessibility framework for Microsoft Windows.
UI Automation provides programmatic access to UI elements on the desktop. The accessibility has to be implemented for each control in order to provide access for the test automation Frameworks like Ranorex. In some cases the UI automation is not implemented. If this is the case Ranorex is not able to access the control.

If the UI automation is not implemented Microsoft inspect is not able to recognize the control properly as well.
That's the reason why Markus asked you if Microsoft inspect is able to recognize the element.

I hope it is a little bit clearer now.

Regards,
Bernhard