How to identify RadButton with UIA Verify tool

4 posts, 0 answers
  1. yu
    yu avatar
    6 posts
    Member since:
    Apr 2017

    Posted 07 Dec 2017 Link to this post

    Hi all,

         I read this blog(https://www.telerik.com/blogs/ui-automation-testing-with-uia-verify) about identify Wpf telerik element by uia verify tool. 

         However, I can't find the RadButton and only the text on uia verify tool. Could someone give me hints? Thanks

  2. Yoan
    Admin
    Yoan avatar
    1213 posts

    Posted 12 Dec 2017 Link to this post

    Hi,

    I tried to reproduce the problem you report but to no avail. I have attached my sample project and an image of the result for a reference. I have used this version of the UI Verify tool. Can you give it a try and let me know how it works for you.

    What you can try is to search for this - AutomationManager.AutomationMode = AutomationMode.Disabled property in your project. The property gives you an option for disabling the creation of the Automation peers. You can check our UI Automation Support help article for a reference.

    Regards,
    Yoan
    Progress Telerik
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
  3. yu
    yu avatar
    6 posts
    Member since:
    Apr 2017

    Posted 19 Jan 2018 in reply to Yoan Link to this post

    Hi Yoan,

         Thanks for your support. Should I change "disable" to "Advanced " and more element will be visible?

          AutomationManager.AutomationMode = AutomationMode.Disabled;

    Regards,

    Yu

     

  4. Yoan
    Admin
    Yoan avatar
    1213 posts

    Posted 19 Jan 2018 Link to this post

    Hello,

    Yes, you can set the AutomationMode property to Advanced. Please give this a try and let me know how it works. If this does not help you, may I ask to test the attached sample project from my previous reply?

    Regards,
    Yoan
    Progress Telerik
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Back to Top