Package org.openqa.selenium
Class WebDriverException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.openqa.selenium.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
,RequestFailedException
,ScreenshotException
,ScriptTimeoutException
,SessionNotCreatedException
,StaleElementReferenceException
,TimeoutException
,UnableToCreateProfileException
,UnableToSetCookieException
,UnexpectedTagNameException
,UnhandledAlertException
,UnreachableBrowserException
,UnsupportedCommandException
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionWebDriverException
(String message) WebDriverException
(String message, Throwable cause) WebDriverException
(Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionvoid
static String
getDriverName
(StackTraceElement[] stackTraceElements) static String
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 byaddInfo(String, String)
method.Returns the simple message string of this exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
SESSION_ID
- See Also:
-
DRIVER_INFO
- See Also:
-
BASE_SUPPORT_URL
- See Also:
-
-
Constructor Details
-
WebDriverException
public WebDriverException() -
WebDriverException
-
WebDriverException
-
WebDriverException
-
-
Method Details
-
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 byaddInfo(String, String)
method. To get the original message usegetRawMessage()
- Overrides:
getMessage
in classThrowable
- Returns:
- the detail message string of this exception.
-
getRawMessage
Returns the simple message string of this exception.- Returns:
- the simple message string of this exception.
- See Also:
-
getSystemInformation
-
getHostInformation
-
getSupportUrl
-
getBuildInformation
-
getDriverName
-
addInfo
-
getAdditionalInformation
-