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

Unable to find WPF Telerik elements.

1 Answer 101 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 22 Feb 2016, 03:59 PM

Using the Telerik testing framework, I am able to locate, and interact with, standard WPF controls in my app. However I cannot use the same methods to find Telerik elements.

It does say on the Telerik Testing Framework web page that the framework has native support for WPF Telerik controls, so I imagine I'm missing something obvious.

The error I get when trying to use:

var grid = myApp.MainWindow.Find.byName<RadGridView>("GridName");

is:

"The type 'Telerik.Windows.Controls.RadGridView' cannot be used as type parameter 'T' in the generic type or method 'ArtOfTest.WebAii.Silverlight.VisualFind.ByName<T>(string)'. There is no implicit reference conversion from 'Telerik.Windows.Controls.RadGridView' to 'ArtOfTest.WebAii.Controls.Xaml.IFrameworkElement'."

I've seen others using the Testing Framework to find Telerik elements, but I can't work out how to do it myself.

Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Boyan Boev
Telerik team
answered on 25 Feb 2016, 09:20 AM
Hi Robert,

Your code seems to be correct except that b in ByName should be capital.

Could you please send me your test so I can look at ti.

Thank you!

Regards,
Boyan Boev
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
Tags
General Discussions
Asked by
Robert
Top achievements
Rank 1
Answers by
Boyan Boev
Telerik team
Share this question
or