Menu

#221 Exception appear while entering the text in textfiled

Version_2.next
closed
nobody
5
2012-09-15
2010-05-06
Anonymous
No

When i execute the this command f1.TextField(Find.ByName("EditBox1")).TypeText("opc"); , com exception appear
Exception Text = "The object's type must be ComObject or derived from ComObject.\r\nParameter name: o"

Note: Same exception appear when i tried to attach window using following command
var iee = IE.AttachTo<IE>(Find.ByTitle("TC00012_DisableAbortTesting, 0 : Begin"));

Stack Trace
" at System.Runtime.InteropServices.Marshal.ReleaseComObject(Object o)\r\n at WatiN.Core.Native.InternetExplorer.IEUtils.ReleaseComObjectButIgnoreNull(Object comObject) in C:\Documents and Settings\sawyen\My Documents\WatiN-2.0.20.1089-net-2.0\Source\src\Core\Native\InternetExplorer\IEUtils.cs:line 267\r\n at WatiN.Core.Native.InternetExplorer.IEUtils.EnumIWebBrowser2Interfaces(IWebBrowser2Processor processor) in C:\Documents and Settings\sawyen\My Documents\WatiN-2.0.20.1089-net-2.0\Source\src\Core\Native\InternetExplorer\IEUtils.cs:line 248\r\n at WatiN.Core.Native.InternetExplorer.FrameCountProcessor.GetFrameCountFromHTMLDocument(HTMLDocument htmlDocument) in C:\Documents and Settings\sawyen\My Documents\WatiN-2.0.20.1089-net-2.0\Source\src\Core\Native\InternetExplorer\FrameCountProcessor.cs:line 55\r\n at WatiN.Core.Native.InternetExplorer.IEWaitForComplete.WaitForFramesToComplete(IHTMLDocument2 maindocument) in C:\Documents and Settings\sawyen\My Documents\WatiN-2.0.20.1089-net-2.0\Source\src\Core\Native\InternetExplorer\IEWaitForComplete.cs:line 77\r\n at WatiN.Core.Native.InternetExplorer.IEWaitForComplete.WaitForFramesToComplete(IHTMLDocument2 maindocument) in C:\Documents and Settings\sawyen\My Documents\WatiN-2.0.20.1089-net-2.0\Source\src\Core\Native\InternetExplorer\IEWaitForComplete.cs:line 110\r\n at WatiN.Core.Native.InternetExplorer.IEWaitForComplete.WaitForCompleteOrTimeout() in C:\Documents and Settings\sawyen\My Documents\WatiN-2.0.20.1089-net-2.0\Source\src\Core\Native\InternetExplorer\IEWaitForComplete.cs:line 70\r\n at WatiN.Core.WaitForCompleteBase.DoWait() in C:\Documents and Settings\sawyen\My Documents\WatiN-2.0.20.1089-net-2.0\Source\src\Core\WaitForCompleteBase.cs:line 62\r\n at WatiN.Core.DomContainer.WaitForComplete(IWait waitForComplete) in C:\Documents and Settings\sawyen\My Documents\WatiN-2.0.20.1089-net-2.0\Source\src\Core\DomContainer.cs:line 156\r\n at WatiN.Core.IE.WaitForComplete(Int32 waitForCompleteTimeOut) in C:\Documents and Settings\sawyen\My Documents\WatiN-2.0.20.1089-net-2.0\Source\src\Core\IE.cs:line 899\r\n at WatiN.Core.DomContainer.WaitForComplete() in C:\Documents and Settings\sawyen\My Documents\WatiN-2.0.20.1089-net-2.0\Source\src\Core\DomContainer.cs:line 141\r\n at WatiN.Core.Element.WaitForComplete() in C:\Documents and Settings\sawyen\My Documents\WatiN-2.0.20.1089-net-2.0\Source\src\Core\Element.cs:line 1028\r\n at WatiN.Core.Element.FireEvent(String eventName, Boolean waitForComplete, NameValueCollection eventProperties) in C:\Documents and Settings\sawyen\My Documents\WatiN-2.0.20.1089-net-2.0\Source\src\Core\Element.cs:line 669\r\n at WatiN.Core.Element.FireEvent(String eventName) in C:\Documents and Settings\sawyen\My Documents\WatiN-2.0.20.1089-net-2.0\Source\src\Core\Element.cs:line 621\r\n at WatiN.Core.Element.Focus() in C:\Documents and Settings\sawyen\My Documents\WatiN-2.0.20.1089-net-2.0\Source\src\Core\Element.cs:line 448\r\n at WatiN.Core.Actions.TypeTextAction.TypeAppendClearText(String value, Boolean append, Boolean clear) in C:\Documents and Settings\sawyen\My Documents\WatiN-2.0.20.1089-net-2.0\Source\src\Core\Actions\TypeTextAction.cs:line 57\r\n at WatiN.Core.Actions.TypeTextAction.TypeText(String value) in C:\Documents and Settings\sawyen\My Documents\WatiN-2.0.20.1089-net-2.0\Source\src\Core\Actions\TypeTextAction.cs:line 36\r\n at WatiN.Core.TextField.TypeText(String value) in C:\Documents and Settings\sawyen\My Documents\WatiN-2.0.20.1089-net-2.0\Source\src\Core\TextField.cs:line 70\r\n at WATIN.Program.Main(String[] args) in C:\Documents and Settings\sawyen\My Documents\Visual Studio 2008\Projects\WATIN\WATIN\Program.cs:line 33\r\n at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)\r\n at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)\r\n at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()\r\n at System.Threading.ThreadHelper.ThreadStart_Context(Object state)\r\n at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n at System.Threading.ThreadHelper.ThreadStart()"

Discussion

  • Jeroen van Menen

    I can not reproduce this issue, so its hard to solve it. Can you provide some code to reproduce this? Thanks Jeroen

     
  • SourceForge Robot

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     

Log in to post a comment.