WatiN and COM Errors: Enable IE Protected Mode for Local Intranet Zone

When we first started building up our web test suite using Watin, we quickly started getting this error: System.Runtime.InteropServices.COMException : The interface is unknown.System.Runtime.InteropServices.COMException : The interface is unknown. If you tell IE to use Protected Mode even for Local Intranet sites, these errors don’t happen. We weren’t the first to have this problem. The […]

File Upload Testing in IE8 with WatiN

A .NET MVC application we’re currently working on contains a feature involving image uploads. We’ve had an excellent experience so far using WatiN and SpecFlow together for system testing, but testing file uploads always adds an extra degree of complication. This was no exception, but I’m quite pleased with the outcome. The first hurdle I […]

Fast(er) CSS Selector Based Element Lookups in WatiN via jQuery

We’re using SpecFlow and WatiN to automate acceptance-level tests for a new ASP.NET MVC 2 web application. As we write more and more high-level system tests, we find ourselves wishing we had the ability to search our DOM using CSS selectors and other cool jQuery tricks. Eventually it dawned on us: why not actually use […]