How to instantiate InternetExplorerDriver with Selenium WebDriver using C# How to instantiate InternetExplorerDriver with Selenium WebDriver using C# selenium selenium

How to instantiate InternetExplorerDriver with Selenium WebDriver using C#


Add these lines to your code before creating the object.

   System.setProperty("webdriver.ie.driver",         "E:\\path where your IEDriverServer is located\\IEDriverServer.exe");

You can download IEDriverServer.exe file from here.

As you are using C# you can use the below code.

private const string IE_DRIVER_PATH = @"C:\PathTo\IEDriverServer";var driver = new InternetExplorerDriver(IE_DRIVER_PATH, options);


As the exception says, you need to download IEDriverServer either 32 or 64 bit depending on IE you have and make sure it is available in our path. That is when you type IEDriverServer.exe on command line it should be resolved. Try that


You need to install IEDriverServer and make it part of your project.

This Post contains the download link and some additional information on making it part of your project.