When trying with IE11 driver. It does not close with driver.Close()
and driver.Quit
.
Below is my basic code for launching and closing.
//Declaring IE driver
IWebDriver driver = new InternetExplorerDriver();
//IWebDriver driver = new ChromeDriver();
//Navigate to test URL
driver.Navigate().GoToUrl("http://www.google.com");
//Close the browser
driver.Quit();
//driver.Close();
Seems like a BUG in Selenium:
https://github.com/seleniumhq/selenium-google-code-issue-archive/issues/4288
https://github.com/seleniumhq/selenium-google-code-issue-archive/issues/65
You could manually kill all processes:
I know, it is an ugly workaround and it will close all Internet Explorer windows currently running but at least it will clean up resources if you need to run this automatically.