打开网址失败,错误消息:界面未知。 (来自HRESULT的异常:0x800706B5)Interop.SHDocVw

时间:2012-05-23 07:34:44

标签: nunit watin webtest

当我尝试打开网址并登录时,我正在与WatiN和Nunit进行网络测试。以下错误打断了我:

ADP.OneHR.ATC.Production_SmokingTests.Production_LoginAndOpenOnePageTests.BeginTest(2):
System.Exception : Failed to write log! The interface is unknown. (Exception from 
HRESULT: 0x800706B5)Interop.SHDocVw at SHDocVw.IWebBrowser2.get_HWND()
at WatiN.Core.Native.InternetExplorer.IEBrowser.get_hWnd()
at WatiN.Core.Browser.get_hWnd()
at WatiN.Core.UtilityClasses.CaptureWebPage.CaptureWebPageToFile(Stream stream,
    ImageCodecs imagetype, Boolean writeUrl, Boolean showGuides, Int32 scalePercentage, Int32 quality)
at WatiN.Core.UtilityClasses.CaptureWebPage.CaptureWebPageToFile(String filename, 
    Boolean writeUrl, Boolean showGuides, Int32 scalePercentage, Int32 quality)
at WatiN.Core.DomContainer.CaptureWebPageToFile(String filename)
at ADP.OneHR.ATF.CommonSettings.TestResultLoggingModule.WriteToLogFile(IE ie, 
    String caseName, Boolean result, String actualResult) in     
D:\ADPTest\ADP.OneHR.Test\ADP.OneHR.Test\CommonSettings\TestResultLoggingModule.cs:line 109

0 个答案:

没有答案