We're developing a test framework around WebAii and we're consistently getting the following error when doing HtmlControl.Click(false). I've seen a couple other posts related to this error but neither cure our problem. Unfortunately it's going to be a bit tricky to produce a concise repro as it's all embedded within a larger framework.
Anyone seen this before and have a solution?
Thanks,
Matt
Error
ArtOfTest.WebAii.Exceptions.ExecuteCommandException: ExecuteCommand failed!
InError set by the client. Client Error:
System.IndexOutOfRangeException: Current frame index '0' is out of range of current frames count '0'
at ArtOfTest.InternetExplorer.IECommandProcessor.SetTargetDocument(BrowserCommand& request, IHTMLDocument2 document)
at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)
BrowserCommand (Type:'Information',Info:'DocumentMarkup',Action:'NotSet',Target:'null',Data:'',ClientId:'Client_74853fed-16ca-4b7b-8fbf-396393255c7c',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'0',InError:'True',Response:'System.IndexOutOfRangeException: Current frame index '0' is out of range of current frames count '0'
at ArtOfTest.InternetExplorer.IECommandProcessor.SetTargetDocument(BrowserCommand& request, IHTMLDocument2 document)
at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)')
InnerException: none.
Stack trace
ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)
ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady)
ArtOfTest.WebAii.Core.Browser.RefreshDomTree()
ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady)
ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request)
ArtOfTest.WebAii.Core.Actions.Click(Element targetElement)
ArtOfTest.WebAii.Controls.HtmlControls.HtmlControl.Click()
<our code>