I am using webdriver and testng to drive the tests. When the suite(parallel
run at method level) is run, one of the test case fails with the below
exception
Browser : chrome,firefox
What could be the cause of the execption? The test on which this exception
is thrown waits for an element to appear with timeout of 5 min.

org.openqa.selenium.remote.UnreachableBrowserException: Error communicating
with the remote browser. It may have died.
Build info: version: '2.25.0', revision: '17482', time: '2012-07-18
21:09:54'
System info: os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1',
java.version: '1.7.0_07'
Driver info: driver.version: ChromeDriver
at
org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:493)
at
org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:502)
at
org.openqa.selenium.chrome.ChromeDriver.getScreenshotAs(ChromeDriver.java:177)
at
com.cisco.cspc.test.listner.ScreenshotListner.takeScreenShot(ScreenshotListner.java:418)
at
com.cisco.cspc.test.listner.ScreenshotListner.onTestFailure(ScreenshotListner.java:120)
at org.testng.internal.Invoker.runTestListeners(Invoker.java:1895)
at org.testng.internal.Invoker.runTestListeners(Invoker.java:1879)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:778)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
at
org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
at org.testng.TestRunner.privateRun(TestRunner.java:767)
at org.testng.TestRunner.run(TestRunner.java:617)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
at org.testng.SuiteRunner.access$000(SuiteRunner.java:37)
at org.testng.SuiteRunner$SuiteWorker.run(SuiteRunner.java:368)
at org.testng.internal.thread.ThreadUtil$2.call(ThreadUtil.java:64)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.openqa.selenium.WebDriverException: Session ID may not be
null
Build info: version: '2.25.0', revision: '17482', time: '2012-07-18
21:09:54'
System info: os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1',
java.version: '1.7.0_07'
Driver info: driver.version: ChromeDriver
at
org.openqa.selenium.remote.HttpCommandExecutor$CommandInfo.get(HttpCommandExecutor.java:560)
at
org.openqa.selenium.remote.HttpCommandExecutor$CommandInfo.getMethod(HttpCommandExecutor.java:544)
at
org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:281)
at
org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:66)
at
org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:472)

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to selenium-users@googlegroups.com.
To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/sR__kQpNjnQJ.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

  • vivek T at Oct 5, 2012 at 6:03 am
    The error is thown when taking the screenshot.
    On Friday, October 5, 2012 10:20:25 AM UTC+5:30, vivek T wrote:

    I am using webdriver and testng to drive the tests. When the
    suite(parallel run at method level) is run, one of the test case fails with
    the below exception
    Browser : chrome,firefox
    What could be the cause of the execption? The test on which this
    exception is thrown waits for an element to appear with timeout of 5 min.

    org.openqa.selenium.remote.UnreachableBrowserException: Error
    communicating with the remote browser. It may have died.
    Build info: version: '2.25.0', revision: '17482', time: '2012-07-18
    21:09:54'
    System info: os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1',
    java.version: '1.7.0_07'
    Driver info: driver.version: ChromeDriver
    at
    org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:493)
    at
    org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:502)
    at
    org.openqa.selenium.chrome.ChromeDriver.getScreenshotAs(ChromeDriver.java:177)
    at
    com.cisco.cspc.test.listner.ScreenshotListner.takeScreenShot(ScreenshotListner.java:418)
    at
    com.cisco.cspc.test.listner.ScreenshotListner.onTestFailure(ScreenshotListner.java:120)
    at org.testng.internal.Invoker.runTestListeners(Invoker.java:1895)
    at org.testng.internal.Invoker.runTestListeners(Invoker.java:1879)
    at org.testng.internal.Invoker.invokeMethod(Invoker.java:778)
    at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
    at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
    at
    org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
    at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
    at org.testng.TestRunner.privateRun(TestRunner.java:767)
    at org.testng.TestRunner.run(TestRunner.java:617)
    at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
    at org.testng.SuiteRunner.access$000(SuiteRunner.java:37)
    at org.testng.SuiteRunner$SuiteWorker.run(SuiteRunner.java:368)
    at org.testng.internal.thread.ThreadUtil$2.call(ThreadUtil.java:64)
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Caused by: org.openqa.selenium.WebDriverException: Session ID may not be
    null
    Build info: version: '2.25.0', revision: '17482', time: '2012-07-18
    21:09:54'
    System info: os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1',
    java.version: '1.7.0_07'
    Driver info: driver.version: ChromeDriver
    at
    org.openqa.selenium.remote.HttpCommandExecutor$CommandInfo.get(HttpCommandExecutor.java:560)
    at
    org.openqa.selenium.remote.HttpCommandExecutor$CommandInfo.getMethod(HttpCommandExecutor.java:544)
    at
    org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:281)
    at
    org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:66)
    at
    org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:472)
    --
    You received this message because you are subscribed to the Google Groups "Selenium Users" group.
    To post to this group, send email to selenium-users@googlegroups.com.
    To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.
    To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/ctQ5hhxV8bwJ.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Jon Thor Austen at Oct 5, 2012 at 4:16 pm
    Sounds similar to this issue sortof :
    https://groups.google.com/forum/#!topic/selenium-users/q-463eIFAHc . I
    usually see something like this when a driver object that I pass to a
    PageObject class somehow is 'null' for one reason or another .

    --
    You received this message because you are subscribed to the Google Groups "Selenium Users" group.
    To post to this group, send email to selenium-users@googlegroups.com.
    To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.
    To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/Z2eUqsqwHr0J.
    For more options, visit https://groups.google.com/groups/opt_out.
  • vivek T at Oct 6, 2012 at 6:02 pm
    I am using TestNG test listener to take screenshot. The exception is thrown
    when the screenshot is taken.
    I also checked if the session was closed by other threads while execution
    through the logs. The driver sessions are not closed and the browser is
    still open.
    Please help me ?

    Thanks
    Vivek
    On Friday, October 5, 2012 9:46:00 PM UTC+5:30, Jon Thor Austen wrote:

    Sounds similar to this issue sortof :
    https://groups.google.com/forum/#!topic/selenium-users/q-463eIFAHc . I
    usually see something like this when a driver object that I pass to a
    PageObject class somehow is 'null' for one reason or another .
    --
    You received this message because you are subscribed to the Google Groups "Selenium Users" group.
    To post to this group, send email to selenium-users@googlegroups.com.
    To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.
    To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/PZd9hBZFJjoJ.
    For more options, visit https://groups.google.com/groups/opt_out.
  • vivek T at Oct 6, 2012 at 8:46 pm
    When looking into the code, I realized that the screenshot driver was using
    a different driver session which was causing the issue.

    Thanks
    Vivek
    On Saturday, October 6, 2012 11:32:08 PM UTC+5:30, vivek T wrote:

    I am using TestNG test listener to take screenshot. The exception is
    thrown when the screenshot is taken.
    I also checked if the session was closed by other threads while execution
    through the logs. The driver sessions are not closed and the browser is
    still open.
    Please help me ?

    Thanks
    Vivek
    On Friday, October 5, 2012 9:46:00 PM UTC+5:30, Jon Thor Austen wrote:

    Sounds similar to this issue sortof :
    https://groups.google.com/forum/#!topic/selenium-users/q-463eIFAHc .
    I usually see something like this when a driver object that I pass to a
    PageObject class somehow is 'null' for one reason or another .
    --
    You received this message because you are subscribed to the Google Groups "Selenium Users" group.
    To post to this group, send email to selenium-users@googlegroups.com.
    To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.
    To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/USy7SMJvxtAJ.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Renuka Koderi at Apr 22, 2013 at 9:23 am

    On Friday, October 5, 2012 10:20:25 AM UTC+5:30, vivek T wrote:
    I am using webdriver and testng to drive the tests. When the
    suite(parallel run at method level) is run, one of the test case fails with
    the below exception
    Browser : chrome,firefox
    What could be the cause of the execption? The test on which this
    exception is thrown waits for an element to appear with timeout of 5 min.

    org.openqa.selenium.remote.UnreachableBrowserException: Error
    communicating with the remote browser. It may have died.
    Build info: version: '2.25.0', revision: '17482', time: '2012-07-18
    21:09:54'
    System info: os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1',
    java.version: '1.7.0_07'
    Driver info: driver.version: ChromeDriver
    at
    org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:493)
    at
    org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:502)
    at
    org.openqa.selenium.chrome.ChromeDriver.getScreenshotAs(ChromeDriver.java:177)
    at
    com.cisco.cspc.test.listner.ScreenshotListner.takeScreenShot(ScreenshotListner.java:418)
    at
    com.cisco.cspc.test.listner.ScreenshotListner.onTestFailure(ScreenshotListner.java:120)
    at org.testng.internal.Invoker.runTestListeners(Invoker.java:1895)
    at org.testng.internal.Invoker.runTestListeners(Invoker.java:1879)
    at org.testng.internal.Invoker.invokeMethod(Invoker.java:778)
    at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
    at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
    at
    org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
    at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
    at org.testng.TestRunner.privateRun(TestRunner.java:767)
    at org.testng.TestRunner.run(TestRunner.java:617)
    at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
    at org.testng.SuiteRunner.access$000(SuiteRunner.java:37)
    at org.testng.SuiteRunner$SuiteWorker.run(SuiteRunner.java:368)
    at org.testng.internal.thread.ThreadUtil$2.call(ThreadUtil.java:64)
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Caused by: org.openqa.selenium.WebDriverException: Session ID may not be
    null
    Build info: version: '2.25.0', revision: '17482', time: '2012-07-18
    21:09:54'
    System info: os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1',
    java.version: '1.7.0_07'
    Driver info: driver.version: ChromeDriver
    at
    org.openqa.selenium.remote.HttpCommandExecutor$CommandInfo.get(HttpCommandExecutor.java:560)
    at
    org.openqa.selenium.remote.HttpCommandExecutor$CommandInfo.getMethod(HttpCommandExecutor.java:544)
    at
    org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:281)
    at
    org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:66)
    at
    org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:472)
    --
    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/msg/selenium-users/-/-EbK5bV0_psJ.
    For more options, visit https://groups.google.com/groups/opt_out.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupselenium-users @
categoriesselenium
postedOct 5, '12 at 5:22a
activeApr 22, '13 at 9:23a
posts6
users3
websiteseleniumhq.org

People

Translate

site design / logo © 2022 Grokbase