Re: [Watin-users] Exception thrown from AttachToIE 1.3.0.4000
Brought to you by:
jvmenen
From: Chris M. <ch...@cl...> - 2009-07-13 19:38:54
|
Confirmed with WatiN 2.0.10.928 as well -- and my workaround doesn't work either. The target page, even if I go straight to it, rather than attaching to the separate window, the same calls are made in the wait routine -- and it's still blowing chunks from down there. Wish I had time to do some plumbing work on this, but I don't unfortunately. :-/ On Mon, Jul 13, 2009 at 1:46 PM, Chris Morris <ch...@cl...> wrote: > Confirmed this with IE6, IE7 & IE8. The test code is clicking a link on a > page that opens another browser window that I'm trying to attach to. > > _ie.Link(Find.ByText("Add a New Project")).Click(); > _pb = IE.AttachToIE(Find.ByTitle("Project Builder"), 30); > > > The original page has frames, the page in the new window has some embedded > ActiveX in it -- dunno if any of that matters. > > I'm going to workaround it now by figuring out what the target link is (the > actual link calls a javascript method) and having the test code load it > directly. > > > System.ArgumentException : The object's type must be __ComObject or derived > from __ComObject. > Parameter name: o > at System.Runtime.InteropServices.Marshal.ReleaseComObject(Object o) > at WatiN.Core.NativeMethods.ReleaseComObjectButIgnoreNull(Object > comObject) > at > WatiN.Core.NativeMethods.EnumIWebBrowser2Interfaces(IWebBrowser2Processor > processor) > at WatiN.Core.Frame.GetFrameCountFromHTMLDocument(HTMLDocument > htmlDocument) > at WatiN.Core.WaitForComplete.WaitForFramesToComplete(IHTMLDocument2 > maindocument) > at WatiN.Core.WaitForComplete.WaitForCompleteOrTimeout() > at WatiN.Core.IEWaitForComplete.DoWait() > at WatiN.Core.DomContainer.WaitForComplete(IWait waitForComplete) > at WatiN.Core.IE.WaitForComplete() > at WatiN.Core.IE.findIE(BaseConstraint findBy, Int32 timeout, Boolean > waitForComplete) > at WatiN.Core.IE.AttachToIE(BaseConstraint findBy, Int32 timeout) > at > Crossmark.SalesTrak.Tests.Tests.ProjectBuilderFixture.AddNewProject(Client > client) in > C:\dev\Crossmark.SalesTrak.Core.vss\Crossmark.SalesTrak.Tests\Tests\TestProjectBuilder.cs:line > 55 > at Crossmark.SalesTrak.Tests.Tests.TestProjectBuilder.TestAllWorkTypes() > in > C:\dev\Crossmark.SalesTrak.Core.vss\Crossmark.SalesTrak.Tests\Tests\TestProjectBuilder.cs:line > 19 > > > > -- > Chris > http://clabs.org > -- Chris http://clabs.org |