2010-01-04 101 views
2

在Windows 7上運行華廷當我運行在Windows 7與IE8任何華廷測試(注意,所有測試都通過在Vista上使用IE8)瀏覽器顯示的第一頁,但不會再往前走有問題。幾秒鐘後,將顯示以下異常:與IE 8

WatiN.Core.Exceptions.TimeoutException:超時而Internet Explorer的狀態無法完成

在WatiN.Core.UtilityClasses.TryFuncUntilTimeOut.ThrowTimeOutException(異常lastException,字符串消息) 在WatiN.Core.UtilityClasses.TryFuncUntilTimeOut.HandleTimeOut() 在WatiN.Core.UtilityClasses.TryFuncUntilTimeOut.Try(DoFunc 1 func) at WatiN.Core.WaitForCompleteBase.WaitUntil(DoFunc 1 waitWhile,BuildTimeOutExceptionMessage exceptionMessage) 在WatiN.Core.Native.InternetExplorer.WaitForComplete.WaitWhileIEReadyStateNotComplete(IWebBrowser2的IE) 在WatiN.Core.Native.InternetExplorer.IEWaitFor Complete.DoWait() 在WatiN.Core.DomContainer.WaitForComplete(IWAIT waitForComplete) 在WatiN.Core.IE.WaitForComplete(的Int32 waitForCompleteTimeOut) 在WatiN.Core.DomContainer.WaitForComplete() 在WatiN.Core.Browser。 WatiN.Core.IE.FinishInitialization(Uri uri) at WatiN.Core.IE.CreateNewIEAndGoToUri(Uri uri,IDialogHandler logonDialogHandler,Boolean createInNewProcess) at WatiN.Core.IE..ctor(String url ) at CCS.iPS.ST.Tests.UIWithDBVerification.Tests.DCC_Offered_Completed_ThreeDS_And_Authorisation_Completed()in Tests.cs:line 18

回答

7

確保您以管理員身份運行。似乎是在那裏,除非應用程序具有系統管理員權限運行華廷不能在IE瀏覽器訪問DOM的問題。

+0

就我而言,我運行NUnit的2.4.8,華廷2.0和贏得7試圖運行它作爲一個管理員,但仍給予對話框中不繳費超時60秒例外。其他可能的解決方案 – sam 2010-12-20 11:23:22

1

我知道這是一個古老的線程,但我發現發現在Windows 7下爲華廷一種解決方法,不需要您以管理員身份(這是不是在我公司允許的:S)上運行。如果您禁用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