Hey all,
I'm running webaii against a silverlight 4 application and I'm seeing a weird case where my testing framework hangs trying to find a FrameworkElement by automationId. My test basically looks like this.
I can see the log before the find but I don't see the log after and I don't see the log from the catch. This doesn't seem to happen all the time and seems to be an intermittent failure. I have three different test boxes that run against different browsers and this issue only happens on the test box that runs against Internet Explorer. Eventually the MSTest framework hits its timeout and the tests move on. Have you heard of any failure like this? Do you have an idea on what might be "hanging"? Let me know what info you might need to help discover the problem.
Thanks!
I'm running webaii against a silverlight 4 application and I'm seeing a weird case where my testing framework hangs trying to find a FrameworkElement by automationId. My test basically looks like this.
try
{
string automationID = "MyAutomationID";
Console.WriteLine(
"Find the element by automation ID"
);
FrameworkElement element = Application.Find.ByAutomationId(automationID);
Console.WriteLine(
"Found element"
);
}
catch
(Exception e)
{
Console.WriteLine(
"Caught Exception: "
+ e.Message);
}
I can see the log before the find but I don't see the log after and I don't see the log from the catch. This doesn't seem to happen all the time and seems to be an intermittent failure. I have three different test boxes that run against different browsers and this issue only happens on the test box that runs against Internet Explorer. Eventually the MSTest framework hits its timeout and the tests move on. Have you heard of any failure like this? Do you have an idea on what might be "hanging"? Let me know what info you might need to help discover the problem.
Thanks!