ASP.NET单元测试 - 华廷和Windows 7 / Internet Explorer 8的 [英] ASP.NET Unit Testing - WatiN and Windows 7 / Internet Explorer 8
问题描述
任何技巧在获得华廷对Win7的/ IE8上运行?
我的code:
浏览器=新的IE();
browser.GoTo(HTTP:// TESTSERVER);
browser.TextField(Find.ByName(txtUser))的TypeText(廷德尔);
第三行从来没有真正运行,我得到一个错误回来:
System.Runtime.InteropServices.COMException:RPC服务器不可用。 (从HRESULT异常:0x800706BA)
第二行似乎运行。 IE8似乎并导航到正确的URL。
重新启动计算机
有Windows更新获得在实例化新COM对象的方式。
有关详细信息,请参阅我的回答对这个问题:
<一个href="http://stackoverflow.com/questions/6600482/watin-nunit-and-cruisecontrol-net-error-message-800704a6/8797600#8797600">WatiN, NUnit的和CruiseControl.NET--错误消息800704a6
Any tricks in getting WatiN to run on Win7/IE8?
My code:
browser = new IE();
browser.GoTo("http://testserver");
browser.TextField(Find.ByName("txtUser")).TypeText("tyndall");
The third line never really runs and I get an error back:
System.Runtime.InteropServices.COMException : The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
The second line seems to run. IE8 appears and is navigated to the correct URL.
Reboot the machine
There are windows updates getting in the way of instantiating new COM objects.
See my answer on this question for more details:
WatiN, NUnit and CruiseControl.NET-- Error message 800704a6
这篇关于ASP.NET单元测试 - 华廷和Windows 7 / Internet Explorer 8的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!