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

How to identify RadButton with UIA Verify tool

3 Answers 71 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
yu
Top achievements
Rank 1
yu asked on 07 Dec 2017, 02:47 PM

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

3 Answers, 1 is accepted

Sort by
0
Yoan
Telerik team
answered on 12 Dec 2017, 08:03 AM
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.
0
yu
Top achievements
Rank 1
answered on 19 Jan 2018, 09:13 AM

Hi Yoan,

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

      AutomationManager.AutomationMode = AutomationMode.Disabled;

Regards,

Yu

 

0
Yoan
Telerik team
answered on 19 Jan 2018, 02:02 PM
Hello,

Yes, you can set the  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.
Tags
General Discussions
Asked by
yu
Top achievements
Rank 1
Answers by
Yoan
Telerik team
yu
Top achievements
Rank 1
Share this question
or