Getting org.openqa.selenium.WebDriverException: java.net.SocketException: Read Timeout

561 views
Skip to first unread message

Kuzhali Velmurugan

unread,
Feb 7, 2018, 3:52:09 AM2/7/18
to Selenium Users
Hi, 

The tests that were running well before are all failing with following exception, when run as a gradle task (all the tests)

 org.openqa.selenium.WebDriverException: java.net.SocketException: Read Timeout

But seems to pass when run separately as individual tests.

Any thoughts on how to resolve this issue?

Thanks and Regards,
Kuzhali

Kuzhali Velmurugan

unread,
Feb 9, 2018, 12:52:24 AM2/9/18
to Selenium Users
System.setProperty("webdriver.http.factory", "apache"); --> setting this property solved the issue.

Some issue with selenium 3.9.0 version I guess.

⇜Krishnan Mahadevan⇝

unread,
Feb 9, 2018, 12:56:47 AM2/9/18
to Selenium Users
Kuzhali,

By setting up that JVM argument, if the issue is getting resolved, I would strongly urge you log a bug here : https://github.com/seleniumhq/selenium/issues

That JVM argument is basically letting you fall back to the apache implementation (which has always been the case till now)

So your bug could state that the new okhttp implementation is basically timing out.  If you don't specify the JVM argument, okhttp implementation is what gets picked up by default.
You could perhaps add a sample test that can be used to reproduce the issue as well.

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/370f09aa-833b-401a-a766-114d1892528b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages