Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
591 views
by The go-to Tester (218 points)
edited by
I am running automation scripts using Selenium Webdriver in Java language. I am getting the following error-:

IO Exception from Virtual machine

My OS is Windows 10 and Selenium webdriver version is 3.0.1. What is the reason?
by The go-to Tester (181 points)
What point are you getting the error? Can you post your stacktrace and code at which you are getting the error?
by The go-to Tester (218 points)
Stack trace is as follows -:
Started InternetExplorerDriver server (64-bit)
2.32.3.0
Listening on port 18590
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

My code is -:
System.setProperty("webdriver.ie.driver", driverPath+"IEDriverServer.exe");
driver = new InternetExplorerDriver();
driver.navigate().to("http://www.google.com");

1 Answer

0 like 0 dislike
by The go-to Tester (181 points)
selected by
 
Best answer

Go to internet options of your browser and go to Security and click on "Reset all zones to default level. Now make sure that Enable Protected mode is ticked for all four zones. It should work now.

by
This does not help for IE 11 on windows 7 using selenium 3.0.1
by The go-to Tester (181 points)
Okay. What you have posted is a warning message. The IE Driver includes an HTTP server. It uses the JSON wire protocol. The HTTP server takes time to start and be ready to HTTP requests. But the RemoteWebDriver can not exactly know when that server will be available. So, it will keep on polling the server and it warns you that the HTTP server is not ready yet. Even after waiting for some amount of time, if server does not respond, it will not initiate browser and it will throw exception. Since you are using VM, I suspect that you do not have sufficient memory or proper RAID mechanism to run VM. You might have to increase ram and uninstall other programs which runs in background. Also, see if your CPU usage is below 95% while you invoke tests. Work with your Admin team to get faster VM.

Hope that helps!


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

1.4k questions

1.6k answers

866 comments

1.9k users

...