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

Posted by tyndall on Stack Overflow See other posts from Stack Overflow or by tyndall
Published on 2010-03-17T18:31:55Z Indexed on 2010/04/01 15:13 UTC
Read the original article Hit count: 908

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.

© Stack Overflow or respective owner

Related posts about unit-testing

Related posts about .NET