Unable to find WPF Telerik elements.

2 posts, 0 answers
  1. Robert
    Robert avatar
    1 posts
    Member since:
    Feb 2016

    Posted 22 Feb Link to this post

    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.

  2. Boyan Boev
    Admin
    Boyan Boev avatar
    1045 posts

    Posted 25 Feb Link to this post

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