This question is locked. New answers and comments are not allowed.
I have small test silverlight application and trying to create automated tests for it.
But the following error occurs
Exception thrown executing coded step: '[WebTest1_CodedStep] : @"New Coded Step'.
InnerException:
System.TimeoutException: Timeout trying to connect to Silverlight App.
at ArtOfTest.WebAii.Silverlight.SilverlightApp.WaitUntilExtensionCreated(String extensionCall)
at ArtOfTest.WebAii.Silverlight.SilverlightApp.Connect(Int32 timeout)
at ArtOfTest.WebAii.Silverlight.SilverlightApp.Connect()
at ArtOfTest.WebAii.Silverlight.SilverlightAppsList.get_Item(Int32 index)
at TEstVAM.Pages.SilverlightApplicationPage.get_SilverlightApp() in C:\NeA\TEstVAM\TEstVAM\Pages.g.cs:line 123
at TEstVAM.WebTest1.WebTest1_CodedStep() in C:\NeA\TEstVAM\TEstVAM\WebTest1.tstest.cs:line 77
in the string
in the
In the Pages.g.cs file
As I could see from debug plugin.OwnerBrowser.SilverlightApps() has one element and appIndex is equal to 0
Application is located on the localhost, but the same error occurs when application is located on the remote server.
I'm Using VS2010 and Test Studio Express 2011.1.502.0
But the following error occurs
Exception thrown executing coded step: '[WebTest1_CodedStep] : @"New Coded Step'.
InnerException:
System.TimeoutException: Timeout trying to connect to Silverlight App.
at ArtOfTest.WebAii.Silverlight.SilverlightApp.WaitUntilExtensionCreated(String extensionCall)
at ArtOfTest.WebAii.Silverlight.SilverlightApp.Connect(Int32 timeout)
at ArtOfTest.WebAii.Silverlight.SilverlightApp.Connect()
at ArtOfTest.WebAii.Silverlight.SilverlightAppsList.get_Item(Int32 index)
at TEstVAM.Pages.SilverlightApplicationPage.get_SilverlightApp() in C:\NeA\TEstVAM\TEstVAM\Pages.g.cs:line 123
at TEstVAM.WebTest1.WebTest1_CodedStep() in C:\NeA\TEstVAM\TEstVAM\WebTest1.tstest.cs:line 77
in the string
return new SilverlightAppElement(plugin.OwnerBrowser.SilverlightApps()[appIndex].Find);
in the
/// <
summary
><
br
>
/// Find logic <
br
>
/// (Html): [id 'Exact' silverlightControlHost] AND [tagname 'Exact' div][type 'Exact' application/x-silverlight-2]<
br
>
///<
br
>
/// </
summary
><
br
>
public SilverlightAppElement SilverlightApp<
br
>
{<
br
>
get<
br
>
{<
br
>
ArtOfTest.WebAii.Controls.HtmlControls.HtmlControl plugin = Get<
ArtOfTest.WebAii.Controls.HtmlControls.HtmlControl
>("tagname=div", "id=silverlightControlHost", "|", "type=application/x-silverlight-2");<
br
>
int appIndex = plugin.OwnerBrowser.GetSilverlightAppIndex(plugin);<
br
>
return new SilverlightAppElement(plugin.OwnerBrowser.SilverlightApps()[appIndex].Find);<
br
>
}<
br
>
}
In the Pages.g.cs file
As I could see from debug plugin.OwnerBrowser.SilverlightApps() has one element and appIndex is equal to 0
Application is located on the localhost, but the same error occurs when application is located on the remote server.
I'm Using VS2010 and Test Studio Express 2011.1.502.0