I have a test case in which i am connecting the popup from modal popup i.e: I have clicked on a button that opened a modal popup and then clicked another button on modal popup that button closing the modal popup and opening the new window.
So now connecting to the new windows is failing.
Log for the failure is:
'25-01-2013 10:33:09' - 'NotRun' : 7. Click 'TransparentSpacerGifImage'
'25-01-2013 10:33:19' - 'Pass' : 8. Wait for '10000' msec.
'25-01-2013 10:33:25' - 'Pass' : 9. [Contract_Test_CodedStep] : Connect to modal pop-up window : Contract -- Webpage Dialog, ConnectToPopup=True
'25-01-2013 10:33:41' - 'Pass' : 10. Click 'Test1Test1LabelTag'
'25-01-2013 10:33:41' - 'NotRun' : 11. Click 'ButBeginButtonTag'
'25-01-2013 10:33:55' - 'Pass' : 12. [Contract_Test_CodedStep5] : Click 'ButBeginButtonTag'
'25-01-2013 10:33:55' - 'NotRun' : 13. Close modal pop-up window : Contract Template -- Webpage Dialog
'25-01-2013 10:34:05' - 'Pass' : 14. [Contract_Test_CodedStep6] : Wait for '3000' msec.
'25-01-2013 10:34:28' - 'Fail' : 15. Connect to pop-up window : 'http://mytestapp/Con/main.aspx'
------------------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
ExecuteCommand failed!
BrowserCommand (Type:'Information',Info:'IsReady',Action:'NotSet',Target:'null',Data:'',ClientId:'660803f7-a19b-4012-b54f-f6514396e54c',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'False',Response:'')
InnerException: System.TimeoutException: Timed out waiting for command to be handled
at ArtOfTest.WebAii.Messaging.Process.BrowserHttpRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId, Int32 timeout)
at ArtOfTest.WebAii.Messaging.Process.BrowserHttpRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId)
at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)
InnerException:
ArtOfTest.WebAii.Exceptions.ExecuteCommandException: ExecuteCommand failed!
BrowserCommand (Type:'Information',Info:'IsReady',Action:'NotSet',Target:'null',Data:'',ClientId:'660803f7-a19b-4012-b54f-f6514396e54c',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'False',Response:'')
InnerException: System.TimeoutException: Timed out waiting for command to be handled
at ArtOfTest.WebAii.Messaging.Process.BrowserHttpRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId, Int32 timeout)
at ArtOfTest.WebAii.Messaging.Process.BrowserHttpRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId)
at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)
---> System.TimeoutException: Timed out waiting for command to be handled
at ArtOfTest.WebAii.Messaging.Process.BrowserHttpRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId, Int32 timeout)
at ArtOfTest.WebAii.Messaging.Process.BrowserHttpRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId)
at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)
--- End of inner exception stack trace ---
at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)
at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady)
at ArtOfTest.WebAii.Core.Browser.IsReady()
at ArtOfTest.WebAii.Core.Browser.WaitUntilReady()
at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.HtmlDialogHandlerDescriptor.Execute(Browser browser)
at ArtOfTest.WebAii.Design.Extensibility.HtmlActionDescriptor.Execute(IAutomationHost autoHost)
at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)
This is working fine with IE it is able to connect to the new window after clicking on button in modal popup. But it was failing FF and Chrome. Can you please guide me what can be done to make the test case work in all browsers?