Webdriver: IE11: I / O exception (java.net.SocketException) detected while processing the request: software caused connection interruption: recv failed

When I run my test scripts in win7 IE11 using Selenium WebDriver, I get below the error:

Error: ============================================================================================== Started InternetExplorerDriver server (64-bit) 2.42.0.0 Listening on port 13127 org.apache.http.impl.client.DefaultRequestDirector tryExecute INFO: I/O exception (java.net.SocketException) caught when processing request: Software caused connection abort: recv failed org.apache.http.impl.client.DefaultRequestDirector tryExecute INFO: Retrying request JavaScript error (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 169 milliseconds Build info: version: '2.41.0', revision: '3192d8a', time: '2014-03-27 17:17:32' System info: host: 'blr2261913', ip: '10.177.101.114', os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.7.0_51' Session ID: 71972154-3b97-4623-b651-aaa0bb460ffb Driver info: org.openqa.selenium.ie.InternetExplorerDriver Capabilities [{platform=WINDOWS, javascriptEnabled=true, elementScrollBehavior=0, ignoreZoomSetting=false, enablePersistentHover=true, ie.ensureCleanSession=f r=dismiss, version=11, ie.usePerProcessProxy=false, cssSelectorsEnabled=true, ignoreProtectedModeSettings=false, requireWindowFocus=false, handlesAlerts=true, e, browserAttachTimeout=0, ie.browserCommandLineSwitches=, takesScreenshot=true}] com.thoughtworks.selenium.SeleniumException: JavaScript error (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 169 milliseconds Build info: version: '2.41.0', revision: '3192d8a', time: '2014-03-27 17:17:32' System info: host: 'blr2261913', ip: '10.177.101.114', os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.7.0_51' Session ID: 71972154-3b97-4623-b651-aaa0bb460ffb Driver info: org.openqa.selenium.ie.InternetExplorerDriver Capabilities [{platform=WINDOWS, javascriptEnabled=true, elementScrollBehavior=0, ignoreZoomSetting=false, enablePersistentHover=true, ie.ensureCleanSession=f r=dismiss, version=11, ie.usePerProcessProxy=false, cssSelectorsEnabled=true, ignoreProtectedModeSettings=false, requireWindowFocus=false, handlesAlerts=true, e, browserAttachTimeout=0, ie.browserCommandLineSwitches=, takesScreenshot=true}] at com.thoughtworks.selenium.webdriven.SeleneseCommand.apply(SeleneseCommand.java:44) at com.thoughtworks.selenium.webdriven.Timer.run(Timer.java:40) at com.thoughtworks.selenium.webdriven.WebDriverCommandProcessor.execute(WebDriverCommandProcessor.java:143) at com.thoughtworks.selenium.webdriven.WebDriverCommandProcessor.doCommand(WebDriverCommandProcessor.java:73) at com.thoughtworks.selenium.DefaultSelenium.type(DefaultSelenium.java:317) 

Env : Windows7-64 bit, IE11 IEDriver version: latest ie 2.42.0 Selenium server: 2.41.0

I have already completed the steps described https://code.google.com/p/selenium/wiki/InternetExplorerDriver ! NO GOOD LUCK!

I searched enough on the network, but could not find a solution to my problem.

Any help would be greatly appreciated.

Thanks in advance!

+6
source share
1 answer

I'm not sure if this applies directly to your problem, but I came across something similar when I received the error:

 Caused by: java.net.SocketException: Connection reset 

Which led me to the error raised here: http://bugs.java.com/bugdatabase/view_bug.do?bug_id=7077696

You have recv failed in your error similar to this error, however, it has been noted that this is most likely the Windows firewall causing the error, not the error. Possible workarounds (from the site):

  • Run using -Djava.net.preferIPv4Stack=true

  • Add Firewall Exception for Java Binary Code

  • Or disable FTP status checking in a firewall which I assume is done with: netsh advfirewall set global StatefulFTP disable

This also raises the issue: https://code.google.com/p/selenium/issues/detail?id=6437

As for the error I have more, but it may be applicable to yours? As comment # 7 (from a project member), there is a known issue with IE11 .

This may or may not help, because I did not have the opportunity to check the solutions, and I'm not quite sure about it myself!

+2
source

Source: https://habr.com/ru/post/970313/


All Articles