This question is locked. New answers and comments are not allowed.
Miguel Madero
Top achievements
Rank 1
Miguel Madero
asked on 02 Nov 2009, 09:14 AM
I am trying to run the demo app, but I get the following error when I try to get the first Silverlight app from the array:
Timeout trying to connect to Silverlight App
at ArtOfTest.WebAii.Silverlight.SilverlightApp.a(String A_0)
at ArtOfTest.WebAii.Silverlight.SilverlightApp.Connect()
at ArtOfTest.WebAii.Silverlight.SilverlightApp.ConnectIfNeeded()
at ArtOfTest.WebAii.Silverlight.SilverlightAppsList.get_Item(Int32 index)
The InnerException is null and the error is ocurring on the highlighted line of code:
protected virtual SilverlightApp LaunchInitialize(string demoPath)
{
Manager.LaunchNewBrowser();
ActiveBrowser.NavigateTo(demoPath);
this.app = ActiveBrowser.SilverlightApps()[0];
return this.app;
}
Timeout trying to connect to Silverlight App
at ArtOfTest.WebAii.Silverlight.SilverlightApp.a(String A_0)
at ArtOfTest.WebAii.Silverlight.SilverlightApp.Connect()
at ArtOfTest.WebAii.Silverlight.SilverlightApp.ConnectIfNeeded()
at ArtOfTest.WebAii.Silverlight.SilverlightAppsList.get_Item(Int32 index)
The InnerException is null and the error is ocurring on the highlighted line of code:
protected virtual SilverlightApp LaunchInitialize(string demoPath)
{
Manager.LaunchNewBrowser();
ActiveBrowser.NavigateTo(demoPath);
this.app = ActiveBrowser.SilverlightApps()[0];
return this.app;
}
6 Answers, 1 is accepted
0
Hello Miguel,
Do you have the EnableSilverlight setting set to 'true'? Here are related articles I highly recommend for review:
How to do Silverlight automation with WebAii
WebAii Settings class
Let us know whether this helps.
All the best,
Konstantin Petkov
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Do you have the EnableSilverlight setting set to 'true'? Here are related articles I highly recommend for review:
How to do Silverlight automation with WebAii
WebAii Settings class
Let us know whether this helps.
All the best,
Konstantin Petkov
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Miguel Madero
Top achievements
Rank 1
answered on 02 Nov 2009, 11:02 AM
Hello Konstantin,
I'm using the demo app that ships as part of the WebAii installation. I doubled check and the RadControlBaseTest is setting this setting on the MyTestInitializeMethod. I debug through it, that method is call. I checked that when trying to get the SL app that setting is still true (Manager.Settings.EnableSilverlight), but I still have the same issue. The same happens with all the tests in the project. I even waited to make sure the demo app is fully loaded, but I still have the same problem.
Something a bit weird is that getting the apps doesn't fail, is only when I try to get the first.
var apps = ActiveBrowser.SilverlightApps(); // this works fine
this.app = apps[0];// this TimesOut
I'm using the demo app that ships as part of the WebAii installation. I doubled check and the RadControlBaseTest is setting this setting on the MyTestInitializeMethod. I debug through it, that method is call. I checked that when trying to get the SL app that setting is still true (Manager.Settings.EnableSilverlight), but I still have the same issue. The same happens with all the tests in the project. I even waited to make sure the demo app is fully loaded, but I still have the same problem.
Something a bit weird is that getting the apps doesn't fail, is only when I try to get the first.
var apps = ActiveBrowser.SilverlightApps(); // this works fine
this.app = apps[0];// this TimesOut
0
Miguel Madero
Top achievements
Rank 1
answered on 02 Nov 2009, 11:41 AM
I'm testing another SL App running on localhost and it works fine. I think the problem could be due to running the app from an external domain. I noticed this was (or is) a limitation:
- On Vista, if you are automating an external website, then make sure to add the URL to your Trusted Websites list in IE.
0
Miguel Madero
Top achievements
Rank 1
answered on 02 Nov 2009, 12:13 PM
It works fine once I have it in localhost. I think this should be fixed and include the demo project as part of this Solution. It's nice when you just open something click F5 and it just works, not having external dependencies can help to ensure that.
BTW, setting the site as a Trusted Site doesn't seem to make any difference.
BTW, setting the site as a Trusted Site doesn't seem to make any difference.
0
Hello Miguel,
I'm sorry that you were having that problem until you deployed locally. Unfortunately, we are not able to reproduce the problem you are seeing on this end in Windows 7 and either IE or Firefox. Please let us know if you may have any other issues connecting to your project if you decide to test over the Internet or a shared server.
All the best,
Nelson Sin
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
I'm sorry that you were having that problem until you deployed locally. Unfortunately, we are not able to reproduce the problem you are seeing on this end in Windows 7 and either IE or Firefox. Please let us know if you may have any other issues connecting to your project if you decide to test over the Internet or a shared server.
All the best,
Nelson Sin
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Miguel Madero
Top achievements
Rank 1
answered on 03 Nov 2009, 01:05 AM
Thanks, but I'll stick to local tests for the moment. I'll let you know if I find any issue.