1

我正在使用 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);

错误发生在最后一行。

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

4

1 回答 1

1

我遇到了同样的问题,2 秒 Thread.sleep 为我解决了这个问题。

于 2012-12-11T16:45:08.040 回答