Click here to Skip to main content
15,891,722 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

While i am working with WatiN to test simple login controls, i am getting the following error message. Some times it is getting executed correctly, but most of the time i am getting this error.

Error Message:
Test method ExapmleTest.UnitTest1.Test2LoginTrizotteore threw exception: WatiN.Core.Exceptions.TimeoutException: Timeout while Internet Explorer state not complete.

Error Stack Trace:
VB
WatiN.Core.UtilityClasses.TryFuncUntilTimeOut.ThrowTimeOutException(Exception lastException, String message)
WatiN.Core.UtilityClasses.TryFuncUntilTimeOut.HandleTimeOut()
WatiN.Core.UtilityClasses.TryFuncUntilTimeOut.Try[T](DoFunc`1 func)
WatiN.Core.WaitForCompleteBase.WaitUntil(DoFunc`1 waitWhile, BuildTimeOutExceptionMessage exceptionMessage)
WatiN.Core.Native.InternetExplorer.IEWaitForComplete.WaitUntilNotNull(DoFunc`1 func, BuildTimeOutExceptionMessage exceptionMessage)
WatiN.Core.Native.InternetExplorer.IEWaitForComplete.WaitWhileIEReadyStateNotComplete(IWebBrowser2 ie)
WatiN.Core.Native.InternetExplorer.IEWaitForComplete.WaitForCompleteOrTimeout()
WatiN.Core.WaitForCompleteBase.DoWait()
WatiN.Core.DomContainer.WaitForComplete(IWait waitForComplete)
WatiN.Core.IE.WaitForComplete(Int32 waitForCompleteTimeOut)
WatiN.Core.DomContainer.WaitForComplete()
WatiN.Core.Browser.GoTo(Uri url)
WatiN.Core.IE.FinishInitialization(Uri uri)
WatiN.Core.IE.CreateNewIEAndGoToUri(Uri uri, IDialogHandler logonDialogHandler, Boolean createInNewProcess)
WatiN.Core.IE..ctor(String url)
ExapmleTest.UnitTest1.Test2LoginTrizotteore() in C:\Users\gandhi.rajan\Documents\Visual Studio 2008\Projects\ExapmleTest\ExapmleTest\UnitTest1.cs: line 48


I have already references WatiN.Core.dll and InterOp.SHDocVw.dll
Before that URL getting loaded, i am getting this error.

Thank you.
Posted

1 solution

 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900