or
d as below
Settings.Current.Web.EnableSilverlight =
true
;
06.
07.
// Launch a
browser instance
08.
Manager.LaunchNewBrowser();
09.
10.
// Navigate to
the page
11.
ActiveBrowser.NavigateTo(
"http://localhost:5697/SilverlightApplication1Web/SilverlightApplication1TestPage.html"
);
12.
13.
// Get an
instance of our Silverlight app.
14.
SilverlightApp
app = ActiveBrowser.SilverlightApps()[0];
15.
16.
// Set the text
of the text box
17.
app.FindName<TextBox>(
"myName"
).Text =
"Telerik"
;
Similarly I want to do this for existing browser page.
Settings mySettings =
new
Settings();
mySettings.Web.DefaultBrowser = BrowserType.FireFox;
Manager myManager =
new
Manager(mySettings);
myManager.Start();
myManager.LaunchNewBrowser();
myManager.ActiveBrowser.NavigateTo(
"http://www.gmail.com"
);
System.Threading.Thread.Sleep(8000);
HtmlFindExpression expression =
new
HtmlFindExpression(
"Name = Email"
,
"id = Email"
);
HtmlInputEmail emal = myManager.ActiveBrowser.Find.ByExpression<HtmlInputEmail>(expression);
public SilverlightApp App()
{
Initialize();
Manager.Settings.Web.EnableSilverlight = true;
Manager.LaunchNewBrowser();
ActiveBrowser.Window.Maximize();
ActiveBrowser.NavigateTo("http://ab-m4500/AthenePortal/Presentation.WRClient.html");
return ActiveBrowser.SilverlightApps()[0];
}