UI Automation support

3 posts, 0 answers
  1. Alan
    Alan avatar
    6 posts
    Member since:
    Jun 2009

    Posted 13 Aug 2009 Link to this post

    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. Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 18 Aug 2009 Link to this post

    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.
  3. Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 18 Aug 2009 Link to this post

    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.
Back to Top