When I initialize IE browser using Selenium C#,
case BrowserType.InternetExplorer:
IWebDriver driver = new InternetExplorerDriver("C:\\Program Files\\internet
explorer\\iexplore.exe");
driver.Navigate().GoToUrl("http://www.google.com");
//InternetExplorerOptions options2= new InternetExplorerOptions();
// options2. = ("C:\\Program Files\\internet explorer\\iexplore.exe");
//DriverContext.Driver = new InternetExplorerDriver();
//DriverContext.Browser = new Browser(DriverContext.Driver);
// DriverContext.Browser.Maximize();
break;
I get the following error:
System.NullReferenceException : Object reference not set to an instance of an object. TearDown : System.NullReferenceException : Object reference not set to an instance of an object.