I am currently using the WebAii automation environment to write some user interface tests in a Silverlight 3 application. I am new to Silverlight and suspect that I am missing information on HyperlinkButton.
There is HyperlinkButton in the application, and I try to write code that moves to the page, finds a button on the page, then “clicks” this button (which then goes to NavigateUri, as indicated in the HyperlinkButton properties).
I can’t figure out how to execute this click. Code I still have (simplified):
Manager.LaunchNewBrowser(BrowserType.InternetExplorer);
ActiveBrowser.NavigateTo("http://server/appname/");
var slApp = ActiveBrowser.SilverlightApps()[0];
var menu = slApp.FindName<StackPanel>("LinksStackPanel");
var linkicareabout = menu.Find.ByName<HyperlinkButton>("Some Cases");
I expect to see some Click () action or the Navigate () method that I could call in the "linkicareabout" variable, but I have to skip how to do this.
source
share