I have recorded a coded UI test for web application running in Internet Explorer 8. During test popup window is opened twice, test fails on the second popup with:
Test method TestProject1.CodedUITest1.CodedUITestMethod1 threw exception:
Microsoft.VisualStudio.TestTools.UITest.Extension.UITestControlNotFoundException: The playback failed to find the control with the given search properties. Additional Details:
---> System.Runtime.InteropServices.COMException: Error HRESULT E_FAIL has been returned from a call to a COM component.
Detailed test result is attached.
I have also created simple test project - it contains web application and UI test, run web application in IE and then run UI test, it should fail.