Class WebDriverException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BiDiException, ConnectionClosedException, ConnectionFailedException, DetachedShadowRootException, DevToolsException, ErrorHandler.UnknownServerException, HealthCheckFailedException, InsecureCertificateException, InvalidArgumentException, InvalidCookieDomainException, InvalidElementStateException, InvalidSelectorException, JavascriptException, JsonException, MoveTargetOutOfBoundsException, NoSuchDriverException, NoSuchSessionException, NotFoundException, ScreenshotException, ScriptTimeoutException, SessionNotCreatedException, StaleElementReferenceException, TimeoutException, UnableToCreateProfileException, UnableToSetCookieException, UnexpectedTagNameException, UnhandledAlertException, UnreachableBrowserException, UnsupportedCommandException

public class WebDriverException extends RuntimeException
See Also:
  • Field Details

  • Constructor Details

    • WebDriverException

      public WebDriverException()
    • WebDriverException

      public WebDriverException(String message)
    • WebDriverException

      public WebDriverException(Throwable cause)
    • WebDriverException

      public WebDriverException(String message, Throwable cause)
  • Method Details

    • getMessage

      public String getMessage()
      Returns the detail message string of this exception that includes not only the original message passed to the exception constructor but also driver information, system information and extra information added by addInfo(String, String) method. To get the original message use getRawMessage()
      Overrides:
      getMessage in class Throwable
      Returns:
      the detail message string of this exception.
    • getRawMessage

      public String getRawMessage()
      Returns the simple message string of this exception.
      Returns:
      the simple message string of this exception.
      See Also:
    • getSystemInformation

      public String getSystemInformation()
    • getHostInformation

      public static String getHostInformation()
    • getSupportUrl

      public String getSupportUrl()
    • getBuildInformation

      public BuildInfo getBuildInformation()
    • getDriverName

      public static String getDriverName(StackTraceElement[] stackTraceElements)
    • addInfo

      public void addInfo(String key, String value)
    • getAdditionalInformation

      public String getAdditionalInformation()