Selenium Grid: "SocketException: Connection reset" with Firefox and slow computer

752 views
Skip to first unread message

franks77

unread,
Apr 13, 2012, 8:10:30 AM4/13/12
to seleniu...@googlegroups.com
Hello,

maybe someone can help me. I'm using Selenium (2.21) Grid and facing the following problem:
My code is working fine if I execute my tests on my fast computer. The same code/tests do
not work on a slower computer.
In detail: with <code>this.driver = new RemoteWebDriver(url, capability);</code> do I start
my browser for my Grid test. Internet Explorer is working fine on both computers but Firefox
not on my slower computer. It seems that the problem is the longer starting time (~ 11 seconds)
on my slower computer but I'm not sure.

I've got the following exception:

org.openqa.selenium.WebDriverException: Connection reset
Command duration or timeout: 10.88 seconds
Build info: version: '2.21.0', revision: '16552', time: '2012-04-11 19:08:45'
System info: os.name: 'Windows XP', os.arch: 'x86', os.version: '5.1', java.version: '1.6.0_31'
Driver info: driver.version: RemoteWebDriver
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
...
Caused by: java.net.SocketException: Connection reset
        at java.net.SocketInputStream.read(Unknown Source)
        at org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:149)
        at org.apache.http.impl.io.SocketInputBuffer.fillBuffer(SocketInputBuffer.java:110)
        at org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(AbstractSessionInputBuffer.java:264)
...

I tried to set the following options for my hub/node (but did not help):
Hub: -browserTimeout 60 -nodeTimeout 600
Node: -browserTimeout 60 -timeout 60

Thanks in advance.

Frank

Arran

unread,
Mar 18, 2013, 8:40:15 AM3/18/13
to seleniu...@googlegroups.com
What versions are you running?

On Monday, 18 March 2013 02:30:10 UTC, Gary Lam wrote:
We are having the same problem.

How did you reslove yours?

Brent Barker

unread,
Jun 19, 2014, 1:28:40 PM6/19/14
to seleniu...@googlegroups.com
Have you found a solution to your problem?

Venkata Prasad Reddy

unread,
Oct 15, 2015, 2:23:22 AM10/15/15
to Selenium Users
Hi All,
 
We use the selenium webdriver dlls set up to run my automation suite. I encounter this problem when runnning tests in Firefox only. The tests in Firefox run very slow , taking 3-4 minutes to load pages, However, when I run the same test on the same machine using Firefox browser manually I don't encounter this slowness. At times while running automation on Firefox, we also get "Connection was reset" page.
 
We use the following environment:
 
Firefox version 28, 37 (proxy is set to use system settings)
Webdriver (dlls) verson 2.45
Windows 7
 
 
Earlier we used to run the same set up in Windows XP using Firefox version 14,16, and Webdriver version 2.37, we didn't experience this issue.
 
We invoke Firefox using the following code :
 
Proxy proxy = new Proxy();
proxy.Kind = ProxyKind.System;
FirefoxProfile profile = new FirefoxProfile(); 
profile.SetProxyPreferences(proxy);
RemoteWebDriver dr = new FirefoxDriver(new FirefoxBinary(@"C:\Program Files (x86)\Mozilla Firefox\firefox.exe"), profile, TimeSpan.FromSeconds(120));
dr.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(3));
dr.Manage().Window.Maximize();
dr.Manage().Cookies.DeleteAllCookies();
dr.Navigate().GoToUrl(WebSiteUrl);
 
remaining tests steps......
 
 
Please can someone help me resolve this issue.
 
Thanks in advance.
Reply all
Reply to author
Forward
0 new messages