bonigarcia / webdrivermanager-examples

JUnit tests with Selenium WebDriver and WebDriverManager

Home Page:https://bonigarcia.dev/webdrivermanager/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IE11: webdriver doesn't execute driver.close()

hossainmtuhin opened this issue · comments

@Test public void launchSite() { WebDriverManager.iedriver().setup(); // WebDriverManager.iedriver().arch64().setup(); driver = new InternetExplorerDriver(); driver.manage().window().maximize(); try { driver.get("https://www.wikipedia.org/"); } catch (TimeoutException e) { System.out.println("TimeoutException error is thrown and later handled"); } driver.close(); }

For the above test method, the IE11 browser was up and was loaded the page. But the problem is, the browser doesn't get closed and remains open. Later, it throws timeOutError.

I think that's an issue about IExplorer. In any case, see this or this.