Issue 3000 in selenium: Getting org.openqa.selenium.WebDriverException: Error communicating with the remote browser. It may have died.

568 views
Skip to first unread message

sele...@googlecode.com

unread,
Dec 6, 2011, 7:14:59 AM12/6/11
to selenium-deve...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 3000 by tapashw...@gmail.com: Getting
org.openqa.selenium.WebDriverException: Error communicating with the remote
browser. It may have died.
http://code.google.com/p/selenium/issues/detail?id=3000

Getting "org.openqa.selenium.WebDriverException: Error communicating with
the remote browser. It may have died." error message while running my
automation scripts on Google chrome 13.0 browser, in Firefox 3.6.24 browser
same scripts working OK.

Please see the error log:


"Dec 6, 2011 5:27:39 PM org.apache.http.impl.client.DefaultRequestDirector
tryExecute
INFO: I/O exception (org.apache.http.NoHttpResponseException) caught when
processing request: The target server failed to respond
Dec 6, 2011 5:27:39 PM org.apache.http.impl.client.DefaultRequestDirector
tryExecute
INFO: Retrying request
Dec 6, 2011 5:27:41 PM org.apache.http.impl.client.DefaultRequestDirector
tryExecute
INFO: I/O exception (org.apache.http.NoHttpResponseException) caught when
processing request: The target server failed to respond
Dec 6, 2011 5:27:41 PM org.apache.http.impl.client.DefaultRequestDirector
tryExecute
INFO: Retrying request
[1206/172743:ERROR:scoped_temp_dir.cc(70)] ScopedTempDir unable to delete
C:\Users\Admin\AppData\Local\Temp\scoped_dir5382
[1206/172743:WARNING:scoped_temp_dir.cc(15)] Could not delete temp dir in
dtor.
FAILED: testMotorHireAndReward("http://acme...")
org.openqa.selenium.WebDriverException: Error communicating with the remote
browser. It may have died.
Build info: version: '2.12.0', revision: '14666', time: '2011-11-10
18:36:18'
System info: os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1',
java.version: '1.6.0_27'
Driver info: driver.version: RemoteWebDriver
at
org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:412)
at
org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:205)
at
org.openqa.selenium.remote.RemoteWebDriver.findElementById(RemoteWebDriver.java:222)
at org.openqa.selenium.By$ById.findElement(By.java:210)
at
org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:197)
at
com.Networks.Tests.MotorHireAndReward.testMotorHireAndReward(MotorHireAndReward.java:126)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:74)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:673)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:846)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1170)
at
org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
at org.testng.TestRunner.runWorkers(TestRunner.java:1125)
at org.testng.TestRunner.privateRun(TestRunner.java:749)
at org.testng.TestRunner.run(TestRunner.java:600)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:317)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:312)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:274)
at org.testng.SuiteRunner.run(SuiteRunner.java:223)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:995)
at org.testng.TestNG.runSuitesLocally(TestNG.java:920)
at org.testng.TestNG.run(TestNG.java:856)
at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:110)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:205)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:174)
Caused by: org.openqa.selenium.WebDriverException:
org.apache.http.NoHttpResponseException: The target server failed to respond
Build info: version: '2.12.0', revision: '14666', time: '2011-11-10
18:36:18'
System info: os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1',
java.version: '1.6.0_27'
Driver info: driver.version: RemoteWebDriver
at
org.openqa.selenium.chrome.ChromeCommandExecutor.execute(ChromeCommandExecutor.java:59)
at
org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:398)"


Selenium version:2.12
OS: Windows 7
Browser: Google chrome
Brower version:13.0

sele...@googlecode.com

unread,
Dec 6, 2011, 9:51:07 AM12/6/11
to selenium-deve...@googlegroups.com
Updates:
Status: NeedsClarification

Comment #1 on issue 3000 by simon.m.stewart: Getting

org.openqa.selenium.WebDriverException: Error communicating with the remote
browser. It may have died.
http://code.google.com/p/selenium/issues/detail?id=3000

Could you please update to the latest stable version of chrome and the
chromedriver (downloadable from the chromium.googlecode.com site) If the
problem persists, please let us know.

sele...@googlecode.com

unread,
Dec 6, 2011, 4:51:38 PM12/6/11
to selenium-deve...@googlegroups.com
Updates:
Labels: Component-WebDriver Browser-Chrome

Comment #2 on issue 3000 by barancev: Getting

org.openqa.selenium.WebDriverException: Error communicating with the remote
browser. It may have died.
http://code.google.com/p/selenium/issues/detail?id=3000

(No comment was entered for this change.)

sele...@googlecode.com

unread,
Dec 14, 2011, 8:24:40 PM12/14/11
to selenium-deve...@googlegroups.com

Comment #3 on issue 3000 by iamcpiz...@gmail.com: Getting
org.openqa.selenium.WebDriverException: Error communicating with the remote
browser. It may have died.
http://code.google.com/p/selenium/issues/detail?id=3000

Hello,

I'm also getting this error randomly using FireFoxDriver. I'm running my
tests through the Grid2 server version 2.14 since 2.15 has some page
scrolling issues that cause my elements to be "unseen". I use
ScreenShotRemoteWebDriver extended from RemoteWebDriver.

Stacktrace:

org.openqa.selenium.WebDriverException: Error communicating with the remote
browser. It may have died.

Build info: version: '2.14.0', revision: '14955', time: '2011-11-29
11:42:43'
System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.6.8',
java.version: '1.6.0_26'
Driver info: driver.version: ScreenShotRemoteWebDriver
at
org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:396)
at
org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:115)
at
org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:76)
at
org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:84)
at
com.ebay.mobile.page.util.ScreenShotRemoteWebDriver.<init>(ScreenShotRemoteWebDriver.java:17)
at
com.ebay.mobile.test.tests.TestUtility.getStartPage(TestUtility.java:164)
at
com.ebay.mobile.test.tests.SearchTests.testSearchResultPrice(SearchTests.java:259)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)
Caused by: org.apache.http.ConnectionClosedException: Premature end of
Content-Length delimited message body (expected: 5456; received: 2543
at
org.apache.http.impl.io.ContentLengthInputStream.read(ContentLengthInputStream.java:178)
at
org.apache.http.impl.io.ContentLengthInputStream.read(ContentLengthInputStream.java:197)
at
org.apache.http.impl.io.ContentLengthInputStream.close(ContentLengthInputStream.java:105)
at
org.apache.http.conn.BasicManagedEntity.streamClosed(BasicManagedEntity.java:152)
at
org.apache.http.conn.EofSensorInputStream.checkClose(EofSensorInputStream.java:237)
at
org.apache.http.conn.EofSensorInputStream.close(EofSensorInputStream.java:186)
at org.apache.http.util.EntityUtils.consume(EntityUtils.java:67)
at
org.openqa.selenium.remote.HttpCommandExecutor$EntityWithEncoding.<init>(HttpCommandExecutor.java:490)
at
org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:378)
at
org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:382)

sele...@googlecode.com

unread,
Dec 20, 2011, 9:06:37 AM12/20/11
to selenium-deve...@googlegroups.com

Comment #4 on issue 3000 by vanlo...@gmail.com: Getting
org.openqa.selenium.WebDriverException: Error communicating with the remote
browser. It may have died.
http://code.google.com/p/selenium/issues/detail?id=3000

I have the same issue in chrome:

exception: org.openqa.selenium.WebDriverException: Error communicating with
the remote browser. It may have died. Build info: version: '2.12.0',

revision: '14666', time: '2011-11-10 18:36:18' System info:

os.name: 'Windows XP', os.arch: 'x86', os.version: '5.1',
java.version: '1.6.0_26' Driver info: driver.version: RemoteWebDriver
stack trace:
org.openqa.selenium.remote.RemoteWebDriver.execute() line 412
org.openqa.selenium.remote.RemoteWebDriver.findElements() line 216
org.openqa.selenium.remote.RemoteWebDriver.findElementsByXPath() line 282
org.openqa.selenium.By$ByXPath.findElements() line 333
org.openqa.selenium.remote.RemoteWebDriver.findElements() line 193
org.powerTools.web.WebDriverBrowser.findOneElement() line 310
org.powerTools.web.WebDriverBrowser.findOneElement() line 301
org.powerTools.web.WebDriverBrowser.getItemText() line 259
nl.deTelefoongids.test.search.SearchResultsPage.getItemText() line 173
nl.deTelefoongids.test.search.SearchResultsPage.getRanking() line 113
nl.deTelefoongids.test.search.Result.getRanking() line 77
nl.deTelefoongids.test.search.RankingStrategy.validateResult() line 16
nl.deTelefoongids.test.search.Instructions.validateResult() line 235
nl.deTelefoongids.test.search.Instructions.CheckRankingFor_Sections() line
197
sun.reflect.NativeMethodAccessorImpl.invoke0() line -2
sun.reflect.NativeMethodAccessorImpl.invoke() line -1
sun.reflect.DelegatingMethodAccessorImpl.invoke() line -1
java.lang.reflect.Method.invoke() line -1
org.powerTools.engine.engine.Executor.execute() line 77
org.powerTools.engine.engine.Engine.execute() line 100
org.powerTools.engine.engine.Engine.run() line 83
org.powerTools.engine.engine.Engine.run() line 28
org.powerTools.engine.PowerDataFixture.doTable() line 16
fit.Fixture.interpretFollowingTables() line 119
fit.Fixture.interpretTables() line 105
fit.Fixture.doTables() line 79
fit.FitServer.process() line 81
fit.FitServer.run() line 56
fit.FitServer.main() line 4

sele...@googlecode.com

unread,
Dec 20, 2011, 9:10:39 AM12/20/11
to selenium-deve...@googlegroups.com

Comment #5 on issue 3000 by vanlo...@gmail.com: Getting
org.openqa.selenium.WebDriverException: Error communicating with the remote
browser. It may have died.
http://code.google.com/p/selenium/issues/detail?id=3000

I have the same issue:

exception: org.openqa.selenium.WebDriverException: Error communicating with
the remote browser. It may have died. Build info: version: '2.12.0',
revision: '14666', time: '2011-11-10 18:36:18' System info:
os.name: 'Windows XP', os.arch: 'x86', os.version: '5.1',
java.version: '1.6.0_26' Driver info: driver.version: RemoteWebDriver
stack trace:
org.openqa.selenium.remote.RemoteWebDriver.execute() line 412
org.openqa.selenium.remote.RemoteWebDriver.findElements() line 216
org.openqa.selenium.remote.RemoteWebDriver.findElementsByXPath() line 282
org.openqa.selenium.By$ByXPath.findElements() line 333
org.openqa.selenium.remote.RemoteWebDriver.findElements() line 193
org.powerTools.web.WebDriverBrowser.findOneElement() line 310
org.powerTools.web.WebDriverBrowser.findOneElement() line 301
org.powerTools.web.WebDriverBrowser.getItemText() line 259

nl.test.search.SearchResultsPage.getItemText() line 173
nl.test.search.SearchResultsPage.getRanking() line 113
nl.test.search.Result.getRanking() line 77
nl.test.search.RankingStrategy.validateResult() line 16
nl.test.search.Instructions.validateResult() line 235
nl.test.search.Instructions.CheckRankingFor_Sections() line 197

sele...@googlecode.com

unread,
Dec 21, 2011, 10:02:13 AM12/21/11
to selenium-deve...@googlegroups.com

Comment #6 on issue 3000 by petko_5...@yahoo.com: Getting
org.openqa.selenium.WebDriverException: Error communicating with the remote
browser. It may have died.
http://code.google.com/p/selenium/issues/detail?id=3000

Hello, I got the same error:

org.openqa.selenium.remote.UnreachableBrowserException: Error communicating

with the remote browser. It may have died.

Build info: version: '2.15.0', revision: '15105', time: '2011-12-08
09:57:28'


System info: os.name: 'Windows XP', os.arch: 'x86', os.version: '5.1',

java.version: '1.6.0_10-rc2'


Driver info: driver.version: RemoteWebDriver
at

org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:421)
at
org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:210)
at
org.openqa.selenium.remote.RemoteWebDriver.findElementByXPath(RemoteWebDriver.java:283)
at org.openqa.selenium.By$ByXPath.findElement(By.java:344)
at
org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:202)
at Item14.createHotelFromMissing(Item14.java:99)
at Item14.MissingHotelsMainTest(Item14.java:30)
at Draft.TestingUnitTests(Draft.java:53)


at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at

org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
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)
at
org.apache.http.impl.conn.DefaultResponseParser.parseHead(DefaultResponseParser.java:98)
at
org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:252)
at
org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:281)
at
org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:247)
at
org.apache.http.impl.conn.AbstractClientConnAdapter.receiveResponseHeader(AbstractClientConnAdapter.java:219)
at
org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:298)
at
org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125)
at
org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:645)
at
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:464)
at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
at
org.openqa.selenium.remote.HttpCommandExecutor.fallBackExecute(HttpCommandExecutor.java:398)
at
org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:377)
at
org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.execute(NewProfileExtensionConnection.java:122)
at
org.openqa.selenium.firefox.FirefoxDriver$LazyCommandExecutor.execute(FirefoxDriver.java:237)
at
org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:401)
... 32 more

org.openqa.selenium.remote.UnreachableBrowserException: Error communicating

with the remote browser. It may have died.

Build info: version: '2.15.0', revision: '15105', time: '2011-12-08
09:57:28'


System info: os.name: 'Windows XP', os.arch: 'x86', os.version: '5.1',

java.version: '1.6.0_10-rc2'


Driver info: driver.version: RemoteWebDriver
at

org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:421)
at
org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:428)
at
org.openqa.selenium.remote.RemoteWebDriver.quit(RemoteWebDriver.java:302)
at Draft.tearDown(Draft.java:58)


at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at

org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
at
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:36)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: org.apache.http.conn.HttpHostConnectException: Connection to
http://localhost:7055 refused
at
org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:158)
at
org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:149)
at
org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:121)
at
org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:573)
at
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:425)
at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
at
org.openqa.selenium.remote.HttpCommandExecutor.fallBackExecute(HttpCommandExecutor.java:398)
at
org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:377)
at
org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.execute(NewProfileExtensionConnection.java:122)
at
org.openqa.selenium.firefox.FirefoxDriver$LazyCommandExecutor.execute(FirefoxDriver.java:237)
at
org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:401)
... 26 more
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at
org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:123)
at
org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:148)
... 36 more


My code:

String propertyCode = driver.findElement(By.id("informal_13")).getText();
driver.findElement(By.id("viewButton")).click();
Set<String> setWins = driver.getWindowHandles();
String newWinHandle = setWins.toArray()[1].toString();
String mainWinHandle = setWins.toArray()[0].toString();
// Switch to new window
WebDriver newDriver = driver.switchTo().window(newWinHandle);

newDriver.findElement(By.id("inputButton")).click();
newDriver.findElement(By.id("inputButton_14")).click();
newDriver.switchTo().window(mainWinHandle);
newDriver.close(); //- Problematic line

I don't see anything wrong which could crash the browser, but it happens!


sele...@googlecode.com

unread,
Dec 26, 2011, 8:27:42 AM12/26/11
to selenium-deve...@googlegroups.com

Comment #7 on issue 3000 by hya...@clickable.com: Getting
org.openqa.selenium.WebDriverException: Error communicating with the remote
browser. It may have died.
http://code.google.com/p/selenium/issues/detail?id=3000

Hi,

I am also seeing exactly the same issue as tapashw...@gmail.com, Here's the
stack trace from my test.

org.openqa.selenium.WebDriverException: Error communicating with the remote
browser. It may have died.

Build info: version: '2.13.0', revision: '14794', time: '2011-11-18
17:49:47'
System info: os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1',
java.version: '1.6.0_27'
Driver info: driver.version: ChromeDriver
at
org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:412)
at
org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:118)
at
org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:79)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:120)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:87)
at
com.clickable3.automation.commonutil.WebDriverInstance.getWebDriver(WebDriverInstance.java:38)
at com.clickable3.automation.tests.BaseTest.OnStart(BaseTest.java:34)
at
com.clickable3.automation.tests.UITests.TestLoginLogout.Start(TestLoginLogout.java:22)


at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at

org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:543)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:212)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:138)
at
org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:175)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:107)
at org.testng.TestRunner.privateRun(TestRunner.java:758)
at org.testng.TestRunner.run(TestRunner.java:613)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
at org.testng.SuiteRunner.run(SuiteRunner.java:240)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:87)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1141)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1066)
at org.testng.TestNG.run(TestNG.java:978)
at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:109)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:202)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:173)
Caused by: org.openqa.selenium.WebDriverException: Timed out waiting for
ChromeDriver server to start.
Build info: version: '2.13.0', revision: '14794', time: '2011-11-18
17:49:47'
System info: os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1',
java.version: '1.6.0_27'
Driver info: driver.version: ChromeDriver
at
org.openqa.selenium.chrome.ChromeDriverService.start(ChromeDriverService.java:143)
at
org.openqa.selenium.chrome.ChromeCommandExecutor.execute(ChromeCommandExecutor.java:46)
at
org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:398)
... 31 more
Caused by: org.openqa.selenium.net.UrlChecker$TimeoutException: Timed out
waiting for [http://localhost:28267/status, http://localhost:28267/healthz]
to be available after 20003 ms
at
org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:86)
at
org.openqa.selenium.chrome.ChromeDriverService.start(ChromeDriverService.java:141)
... 33 more
Caused by: com.google.common.util.concurrent.UncheckedTimeoutException:
java.util.concurrent.TimeoutException
at
com.google.common.util.concurrent.SimpleTimeLimiter.callWithTimeout(SimpleTimeLimiter.java:143)
at
org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:61)
... 34 more
Caused by: java.util.concurrent.TimeoutException
at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source)
at java.util.concurrent.FutureTask.get(Unknown Source)
at
com.google.common.util.concurrent.SimpleTimeLimiter.callWithTimeout(SimpleTimeLimiter.java:130)
... 35 more


Fast help on this issue would be greatly appreciated.

Thanks,
Heena

sele...@googlecode.com

unread,
Jan 4, 2012, 5:56:13 PM1/4/12
to selenium-deve...@googlegroups.com

Comment #8 on issue 3000 by pandya...@gmail.com: Getting
org.openqa.selenium.WebDriverException: Error communicating with the remote
browser. It may have died.
http://code.google.com/p/selenium/issues/detail?id=3000

I have the same issue here for the FireFoxDriver. What's funny though is
that when I run the tests locally, they run just fine. However, when I try
to run them on a Jenkins server, they fail with the exception as reported
by Heena.

sele...@googlecode.com

unread,
Jan 5, 2012, 10:20:31 AM1/5/12
to selenium-deve...@googlegroups.com

Comment #9 on issue 3000 by vamshiku...@gmail.com: Getting
org.openqa.selenium.WebDriverException: Error communicating with the remote
browser. It may have died.
http://code.google.com/p/selenium/issues/detail?id=3000

Even I have the same problem for Firefox driver.

Yesterday I ran the script they had worked fine .But today they are failing
with the above message which reads "Error communicating with the remote
browser. It may have died." .

sele...@googlecode.com

unread,
Jan 10, 2012, 10:31:34 AM1/10/12
to selenium-deve...@googlegroups.com

Comment #10 on issue 3000 by mrgij...@gmail.com: Getting
org.openqa.selenium.WebDriverException: Error communicating with the remote
browser. It may have died.
http://code.google.com/p/selenium/issues/detail?id=3000

This happens to me all the time, especially if I touch my mouse during a
WebDriver test run. So I try not to touch it, and it occurs less
frequently, but it still happens. And also it is annoying because the same
tests, before porting them from Selenium (1.0) to webDriver never had this
issue ...

Eagerly looking forward to any explanation. A solution would be even
better ...


Thanks,

Martin

sele...@googlecode.com

unread,
Jan 15, 2012, 8:31:35 AM1/15/12
to selenium-deve...@googlegroups.com

Comment #11 on issue 3000 by oren1...@gmail.com: Getting
org.openqa.selenium.WebDriverException: Error communicating with the remote
browser. It may have died.
http://code.google.com/p/selenium/issues/detail?id=3000

we have the same problem, and it started when we started working with
firefox 8 (untill than we automated the site tests on FF3.6 and 4).
the same scripts run without failing on chrome


sele...@googlecode.com

unread,
Jan 16, 2012, 6:37:58 AM1/16/12
to selenium-deve...@googlegroups.com

Comment #12 on issue 3000 by krishnan...@gmail.com: Getting
org.openqa.selenium.WebDriverException: Error communicating with the remote
browser. It may have died.
http://code.google.com/p/selenium/issues/detail?id=3000

Seeing this issue consistently crop up with Selenium 2.15.0 and IE 8 in
Grid runs.

sele...@googlecode.com

unread,
Jan 25, 2012, 11:02:50 AM1/25/12
to selenium-deve...@googlegroups.com

Comment #13 on issue 3000 by vitaliy....@gmail.com: Getting
org.openqa.selenium.WebDriverException: Error communicating with the remote
browser. It may have died.
http://code.google.com/p/selenium/issues/detail?id=3000

I've met this problem too. I receive such exception when trying get any
information out of an iframe with long src.

sele...@googlecode.com

unread,
Jan 27, 2012, 5:05:42 AM1/27/12
to selenium-deve...@googlegroups.com

Comment #14 on issue 3000 by barancev: Getting
org.openqa.selenium.WebDriverException: Error communicating with the remote
browser. It may have died.
http://code.google.com/p/selenium/issues/detail?id=3000

Issue 3153 has been merged into this issue.

sele...@googlecode.com

unread,
Jan 27, 2012, 6:14:02 AM1/27/12
to selenium-deve...@googlegroups.com

Comment #15 on issue 3000 by fdez.pe...@gmail.com: Getting
org.openqa.selenium.WebDriverException: Error communicating with the remote
browser. It may have died.
http://code.google.com/p/selenium/issues/detail?id=3000

I have exactly the same problem with IEv9 and selenium 2.12.0.

sele...@googlecode.com

unread,
Jan 28, 2012, 8:00:04 AM1/28/12
to selenium-deve...@googlegroups.com

Comment #16 on issue 3000 by schulle...@gmail.com: Getting
org.openqa.selenium.WebDriverException: Error communicating with the remote
browser. It may have died.
http://code.google.com/p/selenium/issues/detail?id=3000

I cannot get it to work (Selenium 2.18). I tried a Google search with 3
concurrent browser instances. I tried IE and Firefox but I always get erros
like these or the browsers start sequential not parallel. Somebody has a
working Java code with e.g. a simple concurrent Google test?

Reply all
Reply to author
Forward
0 new messages