com.thoughtworks.selenium.SeleniumException: ERROR: Problem capturing screenshot: java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable. at com.thoughtworks.selenium.HttpCommandProcessor.thr owAssertionFailureExceptionOrError(HttpCommandProc essor.java:99) at com.thoughtworks.selenium.HttpCommandProcessor.doC ommand(HttpCommandProcessor.java:93) at com.thoughtworks.selenium.DefaultSelenium.captureS creenshot(DefaultSelenium.java:719) at com.zimbra.qa.selenium.framework.core.ExecuteHarne ssMain$ResultListener.getScreenCapture(ExecuteHarn essMain.java:646) at com.zimbra.qa.selenium.framework.core.ExecuteHarne ssMain$ResultListener.onConfigurationFailure(Execu teHarnessMain.java:700) at org.testng.internal.Invoker.runConfigurationListen ers(Invoker.java:1608) at org.testng.internal.Invoker.handleConfigurationFai lure(Invoker.java:286) at org.testng.internal.Invoker.invokeConfigurations(I nvoker.java:186) at org.testng.internal.Invoker.invokeConfigurations(I nvoker.java:92) at org.testng.SuiteRunner.privateRun(SuiteRunner.java :274)

ubuntuforums.org | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    [ubuntu] java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnviron

    ubuntuforums.org | 1 year ago
    com.thoughtworks.selenium.SeleniumException: ERROR: Problem capturing screenshot: java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable. at com.thoughtworks.selenium.HttpCommandProcessor.thr owAssertionFailureExceptionOrError(HttpCommandProc essor.java:99) at com.thoughtworks.selenium.HttpCommandProcessor.doC ommand(HttpCommandProcessor.java:93) at com.thoughtworks.selenium.DefaultSelenium.captureS creenshot(DefaultSelenium.java:719) at com.zimbra.qa.selenium.framework.core.ExecuteHarne ssMain$ResultListener.getScreenCapture(ExecuteHarn essMain.java:646) at com.zimbra.qa.selenium.framework.core.ExecuteHarne ssMain$ResultListener.onConfigurationFailure(Execu teHarnessMain.java:700) at org.testng.internal.Invoker.runConfigurationListen ers(Invoker.java:1608) at org.testng.internal.Invoker.handleConfigurationFai lure(Invoker.java:286) at org.testng.internal.Invoker.invokeConfigurations(I nvoker.java:186) at org.testng.internal.Invoker.invokeConfigurations(I nvoker.java:92) at org.testng.SuiteRunner.privateRun(SuiteRunner.java :274)
  2. 0

    [ubuntu] java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnviron

    ubuntuforums.org | 8 months ago
    com.thoughtworks.selenium.SeleniumException: ERROR: Problem capturing screenshot: java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable. at com.thoughtworks.selenium.HttpCommandProcessor.thr owAssertionFailureExceptionOrError(HttpCommandProc essor.java:99) at com.thoughtworks.selenium.HttpCommandProcessor.doC ommand(HttpCommandProcessor.java:93) at com.thoughtworks.selenium.DefaultSelenium.captureS creenshot(DefaultSelenium.java:719) at com.zimbra.qa.selenium.framework.core.ExecuteHarne ssMain$ResultListener.getScreenCapture(ExecuteHarn essMain.java:646) at com.zimbra.qa.selenium.framework.core.ExecuteHarne ssMain$ResultListener.onConfigurationFailure(Execu teHarnessMain.java:700) at org.testng.internal.Invoker.runConfigurationListen ers(Invoker.java:1608) at org.testng.internal.Invoker.handleConfigurationFai lure(Invoker.java:286) at org.testng.internal.Invoker.invokeConfigurations(I nvoker.java:186) at org.testng.internal.Invoker.invokeConfigurations(I nvoker.java:92) at org.testng.SuiteRunner.privateRun(SuiteRunner.java :274)

    Root Cause Analysis

    1. com.thoughtworks.selenium.SeleniumException

      ERROR: Problem capturing screenshot: java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable. at com.thoughtworks.selenium.HttpCommandProcessor.thr owAssertionFailureExceptionOrError(HttpCommandProc essor.java:99) at com.thoughtworks.selenium.HttpCommandProcessor.doC ommand(HttpCommandProcessor.java:93) at com.thoughtworks.selenium.DefaultSelenium.captureS creenshot(DefaultSelenium.java:719) at com.zimbra.qa.selenium.framework.core.ExecuteHarne ssMain$ResultListener.getScreenCapture(ExecuteHarn essMain.java:646) at com.zimbra.qa.selenium.framework.core.ExecuteHarne ssMain$ResultListener.onConfigurationFailure(Execu teHarnessMain.java:700) at org.testng.internal.Invoker.runConfigurationListen ers(Invoker.java:1608) at org.testng.internal.Invoker.handleConfigurationFai lure(Invoker.java:286) at org.testng.internal.Invoker.invokeConfigurations(I nvoker.java:186) at org.testng.internal.Invoker.invokeConfigurations(I nvoker.java:92) at org.testng.SuiteRunner.privateRun(SuiteRunner.java :274)

      at org.testng.SuiteRunner.run()
    2. TestNG
      SuiteRunner.run
      1. org.testng.SuiteRunner.run(SuiteRunner.java:193)
      1 frame