Explore Courses Blog Tutorials Interview Questions
0 votes
in DevOps and Agile by (19.7k points)

I am trying to automate a webpage using selenium in IE11. I have set the protected mode settings to the same level and the zoom level is 100%. While running the test it opens the website however gives the exception just after. Below is the code used.

   File file = new File("C:\\Users\\Desktop\\IEDriverServer.exe");

   System.setProperty("", file.getAbsolutePath() );       

   DesiredCapabilities capabilities = DesiredCapabilities.internetExplorer();



   WebDriver driver = new InternetExplorerDriver(capabilities);


And the exception stack trace

Started InternetExplorerDriver server (32-bit)

Listening on port 38122

Jul 11, 2014 1:50:02 PM org.apache.http.impl.client.DefaultRequestDirector tryExecute

INFO: I/O exception ( caught when processing request: Software caused        connection abort: recv failed

Jul 11, 2014 1:50:02 PM org.apache.http.impl.client.DefaultRequestDirector tryExecute

INFO: Retrying request

Exception in thread "main" org.openqa.selenium.NoSuchWindowException: Unable to find element on   closed window (WARNING: The server did not provide any stacktrace information)

Command duration or timeout: 18 milliseconds

Build info: version: '2.39.0', revision: 'ff23eac', time: '2013-12-16 16:12:12'

 System info: host: 'Neeraj', ip: '', 'Windows 7',  s.arch: 'amd64',      os.version: '6.1', java.version: '1.7.0_60'  Session ID: ab6edd65-8a66-41fa-be46-56fba7dbdfc9

Driver info:

 Capabilities [{platform=WINDOWS, javascriptEnabled=true, elementScrollBehavior=0,                          ignoreZoomSetting=false,                                  enablePersistentHover=true, ie.ensureCleanSession=false, browserName=internet explorer, enableElementCacheCleanup=true,   unexpectedAlertBehaviour=dismiss, version=11, ie.usePerProcessProxy=false, cssSelectorsEnabled=true,   ignoreProtectedModeSettings=true, requireWindowFocus=false,  handlesAlerts=true, initialBrowserUrl=http://localhost:38122/, ie.forceCreateProcessApi=false, nativeEvents=true, browserAttachTimeout=0, ie.browserCommandLineSwitches=, takesScreenshot=true}]

      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

      at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

      at java.lang.reflect.Constructor.newInstance(Unknown Source)

      at org.openqa.selenium.remote.ErrorHandler.createThrowable(

      at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(

    at org.openqa.selenium.remote.RemoteWebDriver.execute(

 at org.openqa.selenium.remote.RemoteWebDriver.findElement(

 at org.openqa.selenium.remote.RemoteWebDriver.findElementById(

 at org.openqa.selenium.By$ById.findElement(

 at org.openqa.selenium.remote.RemoteWebDriver.findElement(

 at Test1.main(

Any suggestions on how to resolve this.

1 Answer

0 votes
by (62.9k points)

First of all, don't use the following:


as you have already set Protected mode settings. For the issue you are seeing, it should be because of the missing registry settings that are added as a prerequisite for running tests in IE11

Check the “IE driver” under Internet Explorer Driver here:

Welcome to Intellipaat Community. Get your technical queries answered by top developers!

30.5k questions

32.6k answers


108k users

Browse Categories