WatiN.Core.IE.CreateNewIEAndGoToUri出错

时间:2012-07-19 08:56:02

标签: .net com watin

我正在使用WatiN进行Web测试。我得到了以下错误:

Retrieving the COM class factory for component with CLSID {0002DF01-0000-0000-C000-000000000046} failed due to the following error: 800706bf The remote procedure call failed and did not execute. (Exception from HRESULT: 0x800706BF).   
at WatiN.Core.IE.CreateNewIEAndGoToUri(Uri uri, IDialogHandler logonDialogHandler, Boolean createInNewProcess)
at WatiN.Core.IE..ctor(String url)

我的代码是:

IE ie = new IE(URL);
Login login = new Login(ie);
login.LoginOneHR(userID, password));
CommonSetup01();
CommonSetup02();

ie.ForceClose();
IE ie_C = new IE(URL);

在最后一行发生错误。

如果你知道为什么或如何解决它,请帮助

1 个答案:

答案 0 :(得分:1)

我遇到了同样的问题,并且2秒钟的Thread.sleep为我修复了它。