I am running into an error on a simplistic use of ActiveBrowser that I cannot figure a way around.
The problem I am running into is that when the ActiveBrowser goes to Refresh the DOM the following error is received. I can say the error seems to be intermittent and not reproducible every time.
ArtOfTest.WebAii.Exceptions.ExecuteCommandException: ExecuteCommand failed!
BrowserCommand (Type:'Information',Info:'DocumentMarkup',Action:'NotSet',Target:'null',Data:'',ClientId:'Client_f0ec5086-cf9c-44b0-b74f-ae9735ccfad7',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'False',Response:'')
InnerException: System.InvalidOperationException: This client 'Client_f0ec5086-cf9c-44b0-b74f-ae9735ccfad7' is not connected to remote to be able to process command.
at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)
---> System.InvalidOperationException: This client 'Client_f0ec5086-cf9c-44b0-b74f-ae9735ccfad7' is not connected to remote to be able to process command.
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.RefreshDomTree()
at Aprimo.Automation.Watin.Controllers.Concepts.Tools.WebAiiController.GrabSilverLightApp()
In addition to this exception I log a couple extra pieces of data:
What that ActiveBrowser.ClientId and any open browsers the Manager sees.
ActiveBrowser ClientID: Client_14db7f05-c8e0-4b5d-adc0-f7581daef23a
Client_14db7f05-c8e0-4b5d-adc0-f7581daef23a - https://app.w.qa.marketingstudio.com/aprimoapp.aspx
Looking at the logging information I notice that the ActiveBrowser ClientID and the Manager's Open Browsers match up. However, in the exception the ClientID is not matched.
A little background on this test:
I have also ran tests against IE8 and IE9 and this error is only generated when running in IE9. This occurred on both a 32 and 64 bit Windows 7 machines.
We are using the build: Telerik_Testing_Framework_2012_2_1204_FREE_EDITION
During the execution, our web application generates popups (also browser pages) that appear, but I handle them with different code, Is it possible the ActiveBrowser switches to those, but when they are closed it doesn't switch back completely or possibly cached?
Any thoughts on this?
Thanks,
Will
ActiveBrowser.RefreshDomTree();
FramesCollection framesCollection = ActiveBrowser.Frames;
int
frameIndexWithSLApp = GetFrameIDwithSilverlightApp(framesCollection);
SilverlightAppsList listOfSLApps = framesCollection[frameIndexWithSLApp].SilverlightApps();
SilverlightApp SLApp = listOfSLApps[0];
ArtOfTest.WebAii.Exceptions.ExecuteCommandException: ExecuteCommand failed!
BrowserCommand (Type:'Information',Info:'DocumentMarkup',Action:'NotSet',Target:'null',Data:'',ClientId:'Client_f0ec5086-cf9c-44b0-b74f-ae9735ccfad7',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'False',Response:'')
InnerException: System.InvalidOperationException: This client 'Client_f0ec5086-cf9c-44b0-b74f-ae9735ccfad7' is not connected to remote to be able to process command.
at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)
---> System.InvalidOperationException: This client 'Client_f0ec5086-cf9c-44b0-b74f-ae9735ccfad7' is not connected to remote to be able to process command.
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.RefreshDomTree()
at Aprimo.Automation.Watin.Controllers.Concepts.Tools.WebAiiController.GrabSilverLightApp()
In addition to this exception I log a couple extra pieces of data:
What that ActiveBrowser.ClientId and any open browsers the Manager sees.
ActiveBrowser ClientID: Client_14db7f05-c8e0-4b5d-adc0-f7581daef23a
Client_14db7f05-c8e0-4b5d-adc0-f7581daef23a - https://app.w.qa.marketingstudio.com/aprimoapp.aspx
Looking at the logging information I notice that the ActiveBrowser ClientID and the Manager's Open Browsers match up. However, in the exception the ClientID is not matched.
A little background on this test:
I have also ran tests against IE8 and IE9 and this error is only generated when running in IE9. This occurred on both a 32 and 64 bit Windows 7 machines.
We are using the build: Telerik_Testing_Framework_2012_2_1204_FREE_EDITION
During the execution, our web application generates popups (also browser pages) that appear, but I handle them with different code, Is it possible the ActiveBrowser switches to those, but when they are closed it doesn't switch back completely or possibly cached?
Any thoughts on this?
Thanks,
Will