Hi Telerik Team,
How to get Silverlight control instance from Existing Browser page. For example, I have already opened a browser page which is having Silverlight content in it, how to get the instance of this content for automation.
For the new instance you have showe
How to get Silverlight control instance from Existing Browser page. For example, I have already opened a browser page which is having Silverlight content in it, how to get the instance of this content for automation.
For the new instance you have showe
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.