Search code examples
javaseleniumselenium-iedriver

Run Test With IE And Selenium Java


I want to Run Automated Tests With IE11 and IEDriverServer=3.13, Selenium 3.13 my script work fine with chrome and Firefox, but with IE the code can't interact with elements and I have the following error:

déc. 25, 2018 4:57:14 PM org.openqa.selenium.support.ui.ExpectedConditions 
findElement
AVERTISSEMENT: WebDriverException thrown by findElement(By.xpath: //* 
[@name='login'])
org.openqa.selenium.NoSuchWindowException: Currently focused window has been 
closed.

Solution

  • This happens for various reason, but in your case it is working fine n both chrome and Firefox. Probably the zoom level of your ie browser might be more or less than 100% or Downgrade ie driver version and test.

    Thanks