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
FieldsConstructor Summary
ConstructorsConstructorDescriptionWebDriverException(@NullableString message) WebDriverException(@NullableString message, @NullableThrowable cause) WebDriverException(@NullableThrowable cause) Method Summary
Modifier and TypeMethodDescriptionvoidstaticStringgetDriverName(StackTraceElement[] stackTraceElements) staticString@NullableStringReturns 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.@NullableStringReturns the simple message string of this exception.@NullableStringMethods 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:
getMessagein 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