How to expose the automation peer of a silverlight custom control in Telerik testing framework

2 posts, 0 answers
  1. Vinay
    Vinay avatar
    49 posts
    Member since:
    Jan 2015

    Posted 15 Jan 2015 Link to this post

    i want to get the automation peer associated with a silverlight custom control using telerik testing framework. HelpText property of automation peer is used to exposed the required information. i want to get that information(HelpText of automation peer) from the custom control.

    i am trying the following way:

    SilverlightApp app = ActiveBrowser.SilverlightApps()[0];          
    FrameworkElement myCustomControl = app.Find.ByName("myCustomControl");

    After this i am using GetProperty method to get the "HelpText" property as :

    string helpText = (string)myCustomControl.GetProperty(new AutomationProperty("HelpText", typeof(string))); 

    But it gives me error saying : "HelpText" property is not a valid automation property.

    How can i exposed the automation peer of silverlight control in telerik testing framework.?

  2. Ivaylo
    Ivaylo avatar
    782 posts

    Posted 20 Jan 2015 Link to this post


    We have already answered this in your duplicate forum post. Please provide any additional information in the discussion you have opened.

    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top