We want to automate some tests against our Silverlight application. Trying out the „Test Studio“, I managed to record a Login action, but the recoded Steps just don’t get replayed. At playback, the IE starts up and then stays at “about:blank“ till the timeout. In the log file, I saw the following error messages:
Overall Result: Fail
------------------------------------------------------------
'14.09.2011 20:23:06' - Starting execution....
'14.09.2011 20:23:06' - Detected a Silverlight Test. Setting EnableSilverlight=True
------------------------------------------------------------
'14.09.2011 20:23:42' - 'Fail' : 1. Click LoginButton
------------------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
Unable to find the target host (Browser/SilverlightApp) to locate an element. Failure: Unable to find the Silverlight plugin on the following page:'about:blank' using the following expression:'[id 'Exact' silverlightControlHost] AND [tagname 'Exact' div][tagname 'Exact' object]'. Exception: System.TimeoutException: Wait for condition has timed out
at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo)
at ArtOfTest.Common.WaitSync.For[T,V](Func`3 func, T target, V custom, Boolean invertCondition, Int32 timeout)
at ArtOfTest.WebAii.Synchronization.Wait.ForCondition(Func`3 condition, Boolean invertCondition, Object custom, Int32 timeout)
at ArtOfTest.WebAii.Synchronization.Wait.ForExists(Int32 timeout, Boolean refreshElement)
at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.GetHost(IAutomationHost topBrowser, ElementDescriptor element, Int32 hostFindTimeout, Int32 appConnectTimeout, Boolean cachedSLAppOnly, String& error)
I read some other threads of the similar problem; the suggested solution would be to, turn-off the IE’s “Protected Mode“ using the checkbox on the Security tab of IE. Unfortunately, my PC is running with Windows XP and IE8., there is no such checkbox for IE8 on Windows XP. Protected Mode is only available on Windows Vista because it is based on security features new to Windows Vista.
I can’t upgrade my PC to Vista. So I wonder if there is other way to overcome this problem. Any idea would be appreciated.