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:
Manager.LaunchNewBrowser(BrowserType.InternetExplorer);
ActiveBrowser.NavigateTo("http://localhost:1031/SampleSilverlightAppTestPage.aspx");
SilverlightApp app = ActiveBrowser.SilverlightApps()[0];
Assert.IsNotNull(app);
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.?
i am trying the following way:
Manager.LaunchNewBrowser(BrowserType.InternetExplorer);
ActiveBrowser.NavigateTo("http://localhost:1031/SampleSilverlightAppTestPage.aspx");
SilverlightApp app = ActiveBrowser.SilverlightApps()[0];
Assert.IsNotNull(app);
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.?