Windows 7 在使用IE 8的Windows 7上运行WatiN时遇到问题

Windows 7 在使用IE 8的Windows 7上运行WatiN时遇到问题,windows-7,watin,Windows 7,Watin,当我使用IE8在Windows7上运行任何WatiN测试时(请注意,所有测试都在使用IE8的Vista上通过),浏览器会显示第一页,但不会进一步。几秒钟后将显示以下异常: WatiN.Core.Exceptions.TimeoutException:Internet Explorer状态未完成时超时 在WatiN.Core.UtilityClasses.tryFuncuntimeOut.ThrowTimeOutException(Exception lastException,字符串消息)中 在

当我使用IE8在Windows7上运行任何WatiN测试时(请注意,所有测试都在使用IE8的Vista上通过),浏览器会显示第一页,但不会进一步。几秒钟后将显示以下异常:

WatiN.Core.Exceptions.TimeoutException:Internet Explorer状态未完成时超时

在WatiN.Core.UtilityClasses.tryFuncuntimeOut.ThrowTimeOutException(Exception lastException,字符串消息)中 在WatiN.Core.UtilityClasses.tryFuncuntimeout.HandleTimeOut()中 在WatiN.Core.UtilityClasses.tryFuncuntimeOut.Try(DoFunc
1func)
在WatiN.Core.WaitForCompleteBase.WaitUntil(DoFunc
1 waitWhile,BuildTimeOutExceptionMessage exceptionMessage) 在WatiN.Core.Native.InternetExplorer.WaitForComplete.waitwhileireadystatenotcomplete(iWebBrowser2IE) 在WatiN.Core.Native.InternetExplorer.IEWaitForComplete.DoWait()中 at 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) 在WatiN.Core.IE.CreateNewIEAndGoToUri(Uri Uri、IDialogHandler logonDialogHandler、布尔createInNewProcess) 在WatiN.Core.IE..ctor(字符串url)
在CCS.iPS.ST.Tests.UIWithDBVerification.Tests.DCC提供了Tests.cs第18行中的“完成”和“授权”选项,请确保您是以管理员身份运行的。这似乎是一个问题,Watin无法访问IE中的DOM,除非应用程序以系统管理员权限运行

我知道这是一个古老的线程,但我在Windows 7下找到了WatiN的解决方案,它不要求您以管理员身份运行(在我的公司是不允许的):如果您在Internet Explorer中禁用受保护模式,它应该可以正常运行:-

1 - Open internet explorer.
2 - Click on Tools menu and select Internet Options.
3 - Select Security Tab in the Internet options windows.
4 - Select Internet from the zone settings.
5 - Uncheck Enable Protected Mode option to disable the protection from Security for this zone.
6 - Hit Apply and Ok

在我的例子中,我运行的是nunit 2.4.8、watin 2.0和win 7。我尝试以管理员身份运行它,但仍然超时,因为出现了对话框在60秒内不可用的异常。任何其他可能的解决办法