Enum ErrorCode
- Namespace
- WebDriverBiDi
- Assembly
- WebDriverBiDi.dll
Enumeration of error codes that may be returned by the remote end of the WebDriver BiDi protocol in error responses to commands or in unsolicited error events. Each value is associated with the string value used in the JSON error responses.
[JsonConverter(typeof(EnumValueJsonConverter<ErrorCode>))]
[StringEnumUnmatchedValue<ErrorCode>(ErrorCode.UnsetErrorCode)]
public enum ErrorCode
Fields
[StringEnumValue("detached shadow root")] DetachedShadowRoot = 1A command failed because the referenced shadow root is no longer attached to the DOM.
A WebDriver classic error code, not defined by the WebDriver BiDi specification. It is included because remote ends built on a classic WebDriver implementation have been observed to return it.
[StringEnumValue("element click intercepted")] ElementClickIntercepted = 2The Element Click command could not be completed because the element receiving the events is obscuring the element that was requested clicked.
A WebDriver classic error code, not defined by the WebDriver BiDi specification. It is included because remote ends built on a classic WebDriver implementation have been observed to return it.
[StringEnumValue("element not interactable")] ElementNotInteractable = 3A command could not be completed because the element is not pointer- or keyboard interactable.
A WebDriver classic error code, not defined by the WebDriver BiDi specification. It is included because remote ends built on a classic WebDriver implementation have been observed to return it.
[StringEnumValue("insecure certificate")] InsecureCertificate = 4Navigation caused the user agent to hit a certificate warning, which is usually the result of an expired or invalid TLS certificate.
A WebDriver classic error code, not defined by the WebDriver BiDi specification. It is included because remote ends built on a classic WebDriver implementation have been observed to return it.
[StringEnumValue("invalid argument")] InvalidArgument = 5An argument sent during a command was invalid or malformed.
[StringEnumValue("invalid cookie domain")] InvalidCookieDomain = 6An illegal attempt was made to set a cookie under a different domain than the current page.
A WebDriver classic error code, not defined by the WebDriver BiDi specification. It is included because remote ends built on a classic WebDriver implementation have been observed to return it.
[StringEnumValue("invalid element state")] InvalidElementState = 7A command could not be completed because the element is in an invalid state, e.g. attempting to clear an element that isn't both editable and resettable.
A WebDriver classic error code, not defined by the WebDriver BiDi specification. It is included because remote ends built on a classic WebDriver implementation have been observed to return it.
[StringEnumValue("invalid selector")] InvalidSelector = 8An element command failed because an invalid selector was used.
[StringEnumValue("invalid session id")] InvalidSessionId = 9The session ID used in the request was not valid.
[StringEnumValue("invalid web extension")] InvalidWebExtension = 10The web extension data used in the command was not valid.
[StringEnumValue("javascript error")] JavascriptError = 11An error occurred while executing JavaScript supplied by the user.
A WebDriver classic error code, not defined by the WebDriver BiDi specification. It is included because remote ends built on a classic WebDriver implementation have been observed to return it.
[StringEnumValue("move target out of bounds")] MoveTargetOutOfBounds = 12The target for the pointer move action is not valid for the current view port.
[StringEnumValue("no such alert")] NoSuchAlert = 13An attempt was made to operate on an alert that is not present.
[StringEnumValue("no such client window")] NoSuchClientWindow = 14The ID of the client window was invalid when attempting to set the client window state.
[StringEnumValue("no such cookie")] NoSuchCookie = 15No cookie matching the given path name was found amongst the associated cookies of session's current browsing context's active document.
A WebDriver classic error code, not defined by the WebDriver BiDi specification. It is included because remote ends built on a classic WebDriver implementation have been observed to return it.
[StringEnumValue("no such device")] NoSuchDevice = 16No Bluetooth device matching the given device ID was found.
This error code comes from the Web Bluetooth specification.
[StringEnumValue("no such element")] NoSuchElement = 17The target element for the command was not found.
[StringEnumValue("no such frame")] NoSuchFrame = 18The target frame for the command was not found.
[StringEnumValue("no such handle")] NoSuchHandle = 19The target handle for the command was not found.
[StringEnumValue("no such history entry")] NoSuchHistoryEntry = 20The history entry for the command was not found.
[StringEnumValue("no such intercept")] NoSuchIntercept = 21The ID of the network intercept used in the command was not valid.
[StringEnumValue("no such network collector")] NoSuchNetworkCollector = 22The network data collector ID used in the command was not valid.
[StringEnumValue("no such network data")] NoSuchNetworkData = 23The command referenced network data that is unknown: no data of the requested type was collected for the request, or none was collected by the specified collector.
[StringEnumValue("no such node")] NoSuchNode = 24The node ID used in the command was not found.
[StringEnumValue("no such prompt")] NoSuchPrompt = 25No prompt for a Bluetooth device matching the given prompt ID was found.
This error code comes from the Web Bluetooth specification.
[StringEnumValue("no such request")] NoSuchRequest = 26The request ID for the network request used in the command was not found.
[StringEnumValue("no such screencast")] NoSuchScreencast = 27The ID of the screencast used in the command was not found.
[StringEnumValue("no such script")] NoSuchScript = 28The ID of the script used in the command was not found.
[StringEnumValue("no such shadow root")] NoSuchShadowRoot = 29The element does not have a shadow root.
A WebDriver classic error code, not defined by the WebDriver BiDi specification. It is included because remote ends built on a classic WebDriver implementation have been observed to return it.
[StringEnumValue("no such storage partition")] NoSuchStoragePartition = 30The storage partition used in the command was not found.
[StringEnumValue("no such user context")] NoSuchUserContext = 31The ID of the user context used in the command was not found.
[StringEnumValue("no such web extension")] NoSuchWebExtension = 32The ID of the web extension used in the command was not found.
[StringEnumValue("no such window")] NoSuchWindow = 33A command to switch to a window could not be satisfied because the window could not be found.
A WebDriver classic error code, not defined by the WebDriver BiDi specification. It is included because remote ends built on a classic WebDriver implementation have been observed to return it.
[StringEnumValue("script timeout error")] ScriptTimeoutError = 34A script did not complete before its timeout expired.
A WebDriver classic error code, not defined by the WebDriver BiDi specification. It is included because remote ends built on a classic WebDriver implementation have been observed to return it.
[StringEnumValue("session not created")] SessionNotCreated = 35A new session could not be created successfully.
[StringEnumValue("stale element reference")] StaleElementReference = 36A command failed because the referenced element is no longer attached to the DOM.
A WebDriver classic error code, not defined by the WebDriver BiDi specification. It is included because remote ends built on a classic WebDriver implementation have been observed to return it.
[StringEnumValue("timeout")] Timeout = 37An operation did not complete before its timeout expired.
A WebDriver classic error code, not defined by the WebDriver BiDi specification. It is included because remote ends built on a classic WebDriver implementation have been observed to return it.
[StringEnumValue("unable to capture screen")] UnableToCaptureScreen = 38The command was unable to capture the screenshot of the current browsing context.
[StringEnumValue("unable to close browser")] UnableToCloseBrowser = 39The
browser.closecommand was unable to close the browser, for example because other sessions are still active. The session that sent the command is ended regardless.[StringEnumValue("unable to set cookie")] UnableToSetCookie = 40The command was unable to set the cookie successfully.
[StringEnumValue("unable to set file input")] UnableToSetFileInput = 41The command was unable to set the value of a file input element successfully.
The command requested network data that is not available, because it was not collected or has already been evicted.
[StringEnumValue("underspecified storage partition")] UnderspecifiedStoragePartition = 43The command was unable to perform the requested operation on the storage partition, because the parameters used to specify it were insufficient.
[StringEnumValue("unexpected alert open")] UnexpectedAlertOpen = 44A modal dialog was open, blocking this operation.
A WebDriver classic error code, not defined by the WebDriver BiDi specification. It is included because remote ends built on a classic WebDriver implementation have been observed to return it.
[StringEnumValue("unknown command")] UnknownCommand = 45The command was not recognized by the remote end of the WebDriver BiDi protocol, and could not be processed.
[StringEnumValue("unknown error")] UnknownError = 46The remote end of the WebDriver BiDi protocol returned an error that did not match any of the other defined error codes.
[StringEnumValue("unknown method")] UnknownMethod = 47The requested command matched a known URL but did not match any method for that URL.
A WebDriver classic error code, not defined by the WebDriver BiDi specification. It is included because remote ends built on a classic WebDriver implementation have been observed to return it.
UnsetErrorCode = 0Default value indicating that the error code was not set or did not match any known error code string.
[StringEnumValue("unsupported operation")] UnsupportedOperation = 48The command is not supported by the remote end of the WebDriver BiDi protocol.
Remarks
Most values are the error codes the WebDriver BiDi protocol specification defines. The rest are WebDriver classic error codes, which the WebDriver BiDi specification does not define but which remote ends built on a classic WebDriver implementation have been observed to return; each of those says so in its own documentation. An error code string that matches no value is reported as UnsetErrorCode.