Package org.openqa.selenium.remote
Class ErrorCodes
java.lang.Object
org.openqa.selenium.remote.ErrorCodes
Deprecated, for removal: This API element is subject to removal in a future version.
Defines common error codes for the wire protocol.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Deprecated, for removal: This API element is subject to removal in a future version.static final int
Deprecated, for removal: This API element is subject to removal in a future version.static final int
Deprecated, for removal: This API element is subject to removal in a future version.static final int
Deprecated, for removal: This API element is subject to removal in a future version.static final int
Deprecated, for removal: This API element is subject to removal in a future version.static final int
Deprecated, for removal: This API element is subject to removal in a future version.static final int
Deprecated, for removal: This API element is subject to removal in a future version.static final int
Deprecated, for removal: This API element is subject to removal in a future version.static final int
Deprecated, for removal: This API element is subject to removal in a future version.static final int
Deprecated, for removal: This API element is subject to removal in a future version.static final int
Deprecated, for removal: This API element is subject to removal in a future version.static final int
Deprecated, for removal: This API element is subject to removal in a future version.static final int
Deprecated, for removal: This API element is subject to removal in a future version.static final int
Deprecated, for removal: This API element is subject to removal in a future version.static final int
Deprecated, for removal: This API element is subject to removal in a future version.static final int
Deprecated, for removal: This API element is subject to removal in a future version.static final int
Deprecated, for removal: This API element is subject to removal in a future version.static final int
Deprecated, for removal: This API element is subject to removal in a future version.static final int
Deprecated, for removal: This API element is subject to removal in a future version.static final int
Deprecated, for removal: This API element is subject to removal in a future version.static final int
Deprecated, for removal: This API element is subject to removal in a future version.static final int
Deprecated, for removal: This API element is subject to removal in a future version.static final String
Deprecated, for removal: This API element is subject to removal in a future version.static final int
Deprecated, for removal: This API element is subject to removal in a future version.static final int
Deprecated, for removal: This API element is subject to removal in a future version.static final int
Deprecated, for removal: This API element is subject to removal in a future version.static final int
Deprecated, for removal: This API element is subject to removal in a future version.static final int
Deprecated, for removal: This API element is subject to removal in a future version.static final int
Deprecated, for removal: This API element is subject to removal in a future version.static final int
Deprecated, for removal: This API element is subject to removal in a future version. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionClass<? extends org.openqa.selenium.WebDriverException>
getExceptionType
(int statusCode) Deprecated, for removal: This API element is subject to removal in a future version.Returns the exception type that corresponds to the givenstatusCode
.Class<? extends org.openqa.selenium.WebDriverException>
getExceptionType
(String webdriverState) Deprecated, for removal: This API element is subject to removal in a future version.int
getHttpStatusCode
(Throwable throwable) Deprecated, for removal: This API element is subject to removal in a future version.boolean
isMappableError
(Throwable rootCause) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.int
Deprecated, for removal: This API element is subject to removal in a future version.int
Deprecated, for removal: This API element is subject to removal in a future version.
-
Field Details
-
SUCCESS_STRING
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
SUCCESS
public static final int SUCCESSDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
NO_SUCH_SESSION
public static final int NO_SUCH_SESSIONDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
NO_SUCH_ELEMENT
public static final int NO_SUCH_ELEMENTDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
NO_SUCH_FRAME
public static final int NO_SUCH_FRAMEDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
UNKNOWN_COMMAND
public static final int UNKNOWN_COMMANDDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
STALE_ELEMENT_REFERENCE
public static final int STALE_ELEMENT_REFERENCEDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
INVALID_ELEMENT_STATE
public static final int INVALID_ELEMENT_STATEDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
UNHANDLED_ERROR
public static final int UNHANDLED_ERRORDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
JAVASCRIPT_ERROR
public static final int JAVASCRIPT_ERRORDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
XPATH_LOOKUP_ERROR
public static final int XPATH_LOOKUP_ERRORDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
TIMEOUT
public static final int TIMEOUTDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
NO_SUCH_WINDOW
public static final int NO_SUCH_WINDOWDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
INVALID_COOKIE_DOMAIN
public static final int INVALID_COOKIE_DOMAINDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
UNABLE_TO_SET_COOKIE
public static final int UNABLE_TO_SET_COOKIEDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
UNEXPECTED_ALERT_PRESENT
public static final int UNEXPECTED_ALERT_PRESENTDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
NO_ALERT_PRESENT
public static final int NO_ALERT_PRESENTDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
ASYNC_SCRIPT_TIMEOUT
public static final int ASYNC_SCRIPT_TIMEOUTDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
INVALID_SELECTOR_ERROR
public static final int INVALID_SELECTOR_ERRORDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
SESSION_NOT_CREATED
public static final int SESSION_NOT_CREATEDDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
MOVE_TARGET_OUT_OF_BOUNDS
public static final int MOVE_TARGET_OUT_OF_BOUNDSDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
INVALID_XPATH_SELECTOR
public static final int INVALID_XPATH_SELECTORDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
INVALID_XPATH_SELECTOR_RETURN_TYPER
public static final int INVALID_XPATH_SELECTOR_RETURN_TYPERDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
ELEMENT_NOT_INTERACTABLE
public static final int ELEMENT_NOT_INTERACTABLEDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
INVALID_ARGUMENT
public static final int INVALID_ARGUMENTDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
NO_SUCH_COOKIE
public static final int NO_SUCH_COOKIEDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
UNABLE_TO_CAPTURE_SCREEN
public static final int UNABLE_TO_CAPTURE_SCREENDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
ELEMENT_CLICK_INTERCEPTED
public static final int ELEMENT_CLICK_INTERCEPTEDDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
NO_SUCH_SHADOW_ROOT
public static final int NO_SUCH_SHADOW_ROOTDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
METHOD_NOT_ALLOWED
public static final int METHOD_NOT_ALLOWEDDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
-
Constructor Details
-
ErrorCodes
public ErrorCodes()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
toState
Deprecated, for removal: This API element is subject to removal in a future version. -
toStatus
Deprecated, for removal: This API element is subject to removal in a future version. -
getHttpStatusCode
Deprecated, for removal: This API element is subject to removal in a future version. -
getExceptionType
Deprecated, for removal: This API element is subject to removal in a future version.Returns the exception type that corresponds to the givenstatusCode
. All unrecognized status codes will be mapped toWebDriverException.class
.- Parameters:
statusCode
- The status code to convert.- Returns:
- The exception type that corresponds to the provided status code or
null
ifstatusCode == 0
.
-
getExceptionType
public Class<? extends org.openqa.selenium.WebDriverException> getExceptionType(String webdriverState) Deprecated, for removal: This API element is subject to removal in a future version. -
toStatusCode
Deprecated, for removal: This API element is subject to removal in a future version. -
isMappableError
Deprecated, for removal: This API element is subject to removal in a future version.
-