This is a migrated thread and some comments may be shown as answers.

UI Automation support

2 Answers 55 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Alan
Top achievements
Rank 1
Alan asked on 13 Aug 2009, 07:55 AM

Hi,

I was wondering whether RadControls for WPF support UI Automation...

So I created very simple WPF application: I dragged four Rad controls on a form (RadDatePicker, RadTimePicker, RadMaskedTextBox and RadNumericUpDown). Then I assigned AutomationProperties.AutomationId for each of Rad controls (for RadDatePicker it was "datePicker", for RadTimePicker "timePicker", for RadMaskedTextBox "maskedTextBox" and for RadNumericUpDown "numUpDown").

Now in c# (in Program.cs to be precise) I written code like this (mainWindow is a AutomationElement which represents main application window):

PropertyCondition datePickerCondition =   
   new PropertyCondition(AutomationElement.AutomationIdProperty, "datePicker");  
AutomationElement datePicker =   
   mainWindow.FindFirst(TreeScope.Element | TreeScope.Descendants, datePickerCondition); //It doesn't find anything  
AutomationPattern[] datePickerPattrens =   
   datePicker.GetSupportedPatterns(); 

FindFirst method does not find anything, however It should if RadControls for WPF would support UI Automation. Out of four controls I've tested only RadNumericUpDown was found this way.

I've also checked my test application window using UISpy - only RadNumericUpDown had AutomationId properly assigned.

So my question are: 

Am I doing something wrong?

If no, when will RadControls for WPF fully support UI Automation?

RadControls for WPF version used in sample application: 2009.2.701.35

Thanks for help

2 Answers, 1 is accepted

Sort by
0
Boyan
Telerik team
answered on 18 Aug 2009, 12:35 PM
Hello Alan,

Sorry to tell you but currently our WPF controls does not support UI Automation. We have implemented UI Automation for some of our controls for SIlverlight like RadGrid,RadWindow, RadTreeView, RadTabControl , etc. They are like 12 controls that have UI Automation in Silverlight however none for WPF. We are planning to cover all of Silverlight and WPF controls and we have it in our plans, however I can't give you an exact date or release.

Best wishes,
Boyan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Boyan
Telerik team
answered on 18 Aug 2009, 01:15 PM
Hello Alan,

Just a quick update. Radgridview have UI Automation in WPF. Also you can have success with some of the controls as you had with RadNumericUpDown, as our controls in Silverlight and WPF share the same code with just small differences. Because of that,  UI Automation may work for controls that have Silverlight Automation. But it will not be a reliable one.

Kind regards,
Boyan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
General Discussions
Asked by
Alan
Top achievements
Rank 1
Answers by
Boyan
Telerik team
Share this question
or