Testing ASP.NET Modules - WatiN and Windows 7 / Internet Explorer 8

Any tricks to get WatiN to work on Win7 / IE8?

My code is:

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

The third line never starts and I get an error message:

System.Runtime.InteropServices.COMException: RPC server is unavailable. (Exception from HRESULT: 0x800706BA)

The second line seems to work. IE8 will appear and be redirected to the correct URL.

+4
source share
5 answers

Restart your computer

Windows updates appear that make it difficult to create new COM objects.

See my answer on this for more details:

WatiN, NUnit, and CruiseControl.NET-- Error Message 800704a6

+2
source

Running Visual Studio as an administrator solved this problem for me. (Visual Studio 2008 with WatiN 2.0.20).

+5
source

Another alternative, to avoid starting Visual Studio or NUnit as an administrator, would be to disable UAC at the machine level, which should not be a security issue if you work with minimal privileges (which you should be).

+2
source

in win 7 sp1
reduce security when managing user configurations

+1
source

I started getting the same exceptions: "System.Runtime.InteropServices.COMException: RPC server is unavailable." after closing IE when the developer toolbar was open.

Press F12 to close the developer panel and make sure it is closed whenever you close IE (IE remembers the state at startup).

+1
source

Source: https://habr.com/ru/post/1304390/


All Articles