WatiN.Core.Exceptions.TimeoutException:Internet Explorer状态未完成时超时. [英] WatiN.Core.Exceptions.TimeoutException: Timeout while Internet Explorer state not complete.

查看:177
本文介绍了WatiN.Core.Exceptions.TimeoutException:Internet Explorer状态未完成时超时.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

当我与WatiN一起测试简单的登录控件时,我收到以下错误消息.有时它会正确执行,但是大多数时候我都会遇到此错误.

错误消息:
测试方法ExapmleTest.UnitTest1.Test2LoginTrizotteore引发了异常:WatiN.Core.Exceptions.TimeoutException:Internet Explorer状态未完成时超时.

错误堆栈跟踪:

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:

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



我已经引用过WatiN.Core.dll和InterOp.SHDocVw.dll
在加载该URL之前,我遇到了此错误.

谢谢.



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

Thank you.

推荐答案

检查以下相关问题及其答案:

Check these related questions and their answers:


  • Using WatiN through MbUnit to test ASP .Net MVC web application
  • Having problems running WatiN on Windows 7 with IE 8


这篇关于WatiN.Core.Exceptions.TimeoutException:Internet Explorer状态未完成时超时.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆