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.
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.
Telerik Grid View - getting the header row text
Telerik Grid View - getting the header row text
You do not have the required permissions to view the files attached to this post.
Last edited by gannias on Thu May 02, 2013 5:13 pm, edited 1 time in total.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Telerik Grid View - getting the header row text
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
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
re-attached the snapshot
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Telerik Grid View - getting the header row text
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)
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
Yes, I have all the prerequisits installed.
Can you help me get the needed info out of this control?
Can you help me get the needed info out of this control?
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Telerik Grid View - getting the header row text
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)
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
Hi Markus,Support Team wrote: If it was still not possible, UI automation might not be implemented correctly.
Regards,
Markus (T)
What do you mean not implemented correctly?
Thanks!
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Telerik Grid View - getting the header row text
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
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