In this post I’ll show you how to configure Selenium 2.0 WebDriver to work with Visual Studio and Internet Explorer. (For some reason, I initially had a hard time getting this configured correctly.)

After much googling and trying different solutions from various places, I finally got Selenium work. Hopefully this post will help you avoid some of the issues I ran in to.

UPDATE: When your done with this post be sure to check out my interview with Jim Evans, the guy behind the Selenium.Net bindings and the IEDriver to ask him how to make your tests more reliable against IE. Check it out Selenium and IE – Getting Them to Work Together.

Download the  Selenium C# Client Drivers

FYI – the Selenium Web Drivers work against IE 6,7,8 and 9 both 32-bit and 64-bit versions.

How to Configure Visual Studio to work with Selenium

If you are getting the following error:

DriverServiceNotFoundException was unhandled: The file … IEDriverServer.exe does not exist. The driver can be downloaded at


Make sure that you downloaded the IEDriverServer.exe and also that you have the correct path specified in your code

IWebDriver driver = new InternetExplorerDriver(@"C:YourPathIEDriverServer");

Good Luck, and happy Selenium IE an C# scripting!

Also be sure to check out tips and tricks on working with Selenium with IE with the creator of the SeleniumIE driver himself Jim Evans:

https://testguild.com/28-jim-evans-secrets-on-how-to-succeed-with-selenium-and-ie/