Telerik Silverlight Controls Automation with UI Automation

6 posts, 0 answers
  1. Harsha
    Harsha avatar
    4 posts
    Member since:
    Jun 2017

    Posted 18 Apr Link to this post

    Hi,

    We are having an application which is built of Telerik's RAD Controls. We are trying to automate this application using UI Automation framework of Microsoft. As we are trying to identify objects using UISpy tool, none of the controls in the application is getting identified starting from Silverlight window. Can you please help us on how to proceed doing automation with Microsoft UI Automation.

    I checked with developers they confirmed that, they have not disabled the AutomationPeers explicitly any where in their code.

     

    Thanks

     

  2. Ralitsa
    Admin
    Ralitsa avatar
    190 posts

    Posted 20 Apr Link to this post

    Hi Harsha,

    Please make sure that the AutomationManager.AutomationMode property is not set to the Disabled in the application. It would be helpful if you can isolate the observed issue in a separate project with few controls and number of a version which you are using. In order to allow project attachments I am converting the forum thread into a support ticket and you can find it in your account. 

    Let me know if you need further assistance.

    Regards,
    Ralitsa
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. Harsha
    Harsha avatar
    4 posts
    Member since:
    Jun 2017

    Posted 27 Apr in reply to Ralitsa Link to this post

    Thanks for the reply Ralitsa.

    Is it not by default set to "Advanced" mode if the developer has not set this line of code. And it is not for individual controls from Q2 2014 SP. In this link it has been mentioned that by default it will be "Advanced" mode. Please confirm on this.

    https://docs.telerik.com/devtools/silverlight/common-ui-automation

  4. Ralitsa
    Admin
    Ralitsa avatar
    190 posts

    Posted 30 Apr Link to this post

    Hello Harsha,

    I have created a sample application with version R2 2014 SP1 (2014.2.729.1050) and I can confirm that the default value of the AutomationManager.AutomationMode property is Advanced. Please refer to the attached files illustrating the behavior on my end when I use UISpy tool. Feel free to modify the sample project in the attachment on a way to replicate the issue and get back to me with it. Alternatively, you can isolate the observed problem and get back to me.

    You can also check 
    following online resources: UI Automation/Accessibility in Silverlight 2, tools and resources summary

    I hope this information was useful. 

    Regards,
    Ralitsa
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  5. Harsha
    Harsha avatar
    4 posts
    Member since:
    Jun 2017

    Posted 07 May in reply to Ralitsa Link to this post

    HI Ralista,

    Since we are from testing team, we cannot see the dev code to see what is set in AutomationMode Property. However I checked with developer they said they haven't set anything which means it is by default 'Advanced' which allows UISpy tool to see the controls. Please see the attached screenshot of our app which is having telerik controls which are not identified by UISpy.

    Do we need to update UISpy tool or any other checkings we need to see. Please help us.

     

  6. Ralitsa
    Admin
    Ralitsa avatar
    190 posts

    Posted 10 May Link to this post

    Hi Harsha,

    I have created a sample application with RadComboBox, RadMaskedInput, and RadButton with Telerik UI for Silverlight R2 2014 SP1 and tried different cases, however, the controls are successfully displayed in the tool on my end. I use UISpy.exe with 6.0.5808 version for testing. It would be helpful if you can download the attached application(1162855 Modified.zip) and try to reproduce the issue with it. Another option is sending me a project, where the issue is isolated with exact steps which I need to follow, so I can continue investing the cause of the problem. 

    Bear in mind that it is recommended to set the AutomationId property of each control for better testability if you have controls that are created dynamically from your code.  

    Alternatively, you can try upgrading the application to the newer version of our controls to test whether it still has a problem.

    I hope this will be useful. Let me know if you have additional questions. 

    Regards,
    Ralitsa
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top