Class ErrorCodes
java.lang.Object
org.openqa.selenium.remote.ErrorCodes
Deprecated.
Defines common error codes for the wire protocol.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final StringDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable Class<? extends org.openqa.selenium.WebDriverException> getExceptionType(int statusCode) Deprecated.Returns the exception type that corresponds to the givenstatusCode.Class<? extends org.openqa.selenium.WebDriverException> getExceptionType(String webdriverState) Deprecated.intgetHttpStatusCode(Throwable throwable) Deprecated.booleanisMappableError(@Nullable Throwable rootCause) Deprecated.Deprecated.intDeprecated.inttoStatusCode(@Nullable Throwable e) Deprecated.
-
Field Details
-
SUCCESS_STRING
-
SUCCESS
public static final int SUCCESSDeprecated.- See Also:
-
NO_SUCH_SESSION
public static final int NO_SUCH_SESSIONDeprecated.- See Also:
-
NO_SUCH_ELEMENT
public static final int NO_SUCH_ELEMENTDeprecated.- See Also:
-
NO_SUCH_FRAME
public static final int NO_SUCH_FRAMEDeprecated.- See Also:
-
UNKNOWN_COMMAND
public static final int UNKNOWN_COMMANDDeprecated.- See Also:
-
STALE_ELEMENT_REFERENCE
public static final int STALE_ELEMENT_REFERENCEDeprecated.- See Also:
-
INVALID_ELEMENT_STATE
public static final int INVALID_ELEMENT_STATEDeprecated.- See Also:
-
UNHANDLED_ERROR
public static final int UNHANDLED_ERRORDeprecated.- See Also:
-
JAVASCRIPT_ERROR
public static final int JAVASCRIPT_ERRORDeprecated.- See Also:
-
XPATH_LOOKUP_ERROR
public static final int XPATH_LOOKUP_ERRORDeprecated.- See Also:
-
TIMEOUT
public static final int TIMEOUTDeprecated.- See Also:
-
NO_SUCH_WINDOW
public static final int NO_SUCH_WINDOWDeprecated.- See Also:
-
INVALID_COOKIE_DOMAIN
public static final int INVALID_COOKIE_DOMAINDeprecated.- See Also:
-
UNABLE_TO_SET_COOKIE
public static final int UNABLE_TO_SET_COOKIEDeprecated.- See Also:
-
UNEXPECTED_ALERT_PRESENT
public static final int UNEXPECTED_ALERT_PRESENTDeprecated.- See Also:
-
NO_ALERT_PRESENT
public static final int NO_ALERT_PRESENTDeprecated.- See Also:
-
ASYNC_SCRIPT_TIMEOUT
public static final int ASYNC_SCRIPT_TIMEOUTDeprecated.- See Also:
-
INVALID_SELECTOR_ERROR
public static final int INVALID_SELECTOR_ERRORDeprecated.- See Also:
-
SESSION_NOT_CREATED
public static final int SESSION_NOT_CREATEDDeprecated.- See Also:
-
MOVE_TARGET_OUT_OF_BOUNDS
public static final int MOVE_TARGET_OUT_OF_BOUNDSDeprecated.- See Also:
-
INVALID_XPATH_SELECTOR
public static final int INVALID_XPATH_SELECTORDeprecated.- See Also:
-
INVALID_XPATH_SELECTOR_RETURN_TYPER
public static final int INVALID_XPATH_SELECTOR_RETURN_TYPERDeprecated.- See Also:
-
ELEMENT_NOT_INTERACTABLE
public static final int ELEMENT_NOT_INTERACTABLEDeprecated.- See Also:
-
INVALID_ARGUMENT
public static final int INVALID_ARGUMENTDeprecated.- See Also:
-
NO_SUCH_COOKIE
public static final int NO_SUCH_COOKIEDeprecated.- See Also:
-
UNABLE_TO_CAPTURE_SCREEN
public static final int UNABLE_TO_CAPTURE_SCREENDeprecated.- See Also:
-
ELEMENT_CLICK_INTERCEPTED
public static final int ELEMENT_CLICK_INTERCEPTEDDeprecated.- See Also:
-
NO_SUCH_SHADOW_ROOT
public static final int NO_SUCH_SHADOW_ROOTDeprecated.- See Also:
-
METHOD_NOT_ALLOWED
public static final int METHOD_NOT_ALLOWEDDeprecated.- See Also:
-
-
Constructor Details
-
ErrorCodes
public ErrorCodes()Deprecated.
-
-
Method Details
-
toState
-
toStatus
-
getHttpStatusCode
Deprecated. -
getExceptionType
public @Nullable Class<? extends org.openqa.selenium.WebDriverException> getExceptionType(int statusCode) Deprecated.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
nullifstatusCode == 0.
-
getExceptionType
-
toStatusCode
Deprecated. -
isMappableError
Deprecated.
-
ErrorCodecfor mapping between W3C states and exceptions. Removal is tracked by #17638 and is gated on providing a replacement extensibility seam for downstream consumers.