WatiN annoying Interop issue

For some of the tests I wanted to write with SpecFlow, I decided to use WatiN, a library for web application testing. For some reasons, I kept on getting the following error when running my tests:

error: Could not load file or assembly 'Interop.SHDocVw, Version=, Culture=neutral, PublicKeyToken=db7cfd3acb5ad44e' or one of its dependencies. The system cannot find the file specified.

This was particularly annoyng since I had installed WatiN through NuGet.

Turns out this is a known issue tied to the way WatiN.Core is signed. To move past this problem, select Interop.SHDocVw on the references folder of your project and set the “Embed Interop Types” property to False.

WatiN annoying Interop issue

2 thoughts on “WatiN annoying Interop issue

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s