加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

ASP.NET单元测试 – WatiN和Windows 7 / Internet Explorer 8

发布时间:2020-12-16 07:31:10 所属栏目:asp.Net 来源:网络整理
导读:让WatiN在Win7 / IE8上运行的任何技巧? 我的代码: browser = new IE(); browser.GoTo("http://testserver"); browser.TextField(Find.ByName("txtUser")).TypeText("tyndall"); 第三行从未真正运行,我收到错误: System.Runtime.InteropServices.COMExcept
让WatiN在Win7 / IE8上运行的任何技巧?

我的代码:

browser = new IE();
    browser.GoTo("http://testserver");
    browser.TextField(Find.ByName("txtUser")).TypeText("tyndall");

第三行从未真正运行,我收到错误:

System.Runtime.InteropServices.COMException:RPC服务器不可用. (HRESULT异常:0x800706BA)

第二行似乎在运行. IE8出现并导航到正确的URL.

解决方法

重新启动机器

There are windows updates getting in the way of instantiating new COM objects.

有关详细信息,请参阅此问题的答案:

WatiN,NUnit and CruiseControl.NET– Error message 800704a6

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读