Specifies return values for actions in the driver.
Namespace: OpenQA.SeleniumAssembly: WebDriver (in WebDriver.dll) Version: 2.35.0.0 (2.35.0.0)
Syntax
Members
Member name | Value | Description | |
---|---|---|---|
Success | 0 | The action was successful. | |
IndexOutOfBounds | 1 | The index specified for the action was out of the acceptable range. | |
NoCollection | 2 | No collection was specified. | |
NoString | 3 | No string was specified. | |
NoStringLength | 4 | No string length was specified. | |
NoStringWrapper | 5 | No string wrapper was specified. | |
NoSuchDriver | 6 | No driver matching the criteria exists. | |
NoSuchElement | 7 | No element matching the criteria exists. | |
NoSuchFrame | 8 | No frame matching the criteria exists. | |
UnknownCommand | 9 | The functionality is not supported. | |
ObsoleteElement | 10 | The specified element is no longer valid. | |
ElementNotDisplayed | 11 | The specified element is not displayed. | |
InvalidElementState | 12 | The specified element is not enabled. | |
UnhandledError | 13 | An unhandled error occurred. | |
ExpectedError | 14 | An error occurred, but it was expected. | |
ElementNotSelectable | 15 | The specified element is not selected. | |
NoSuchDocument | 16 | No document matching the criteria exists. | |
UnexpectedJavaScriptError | 17 | An unexpected JavaScript error occurred. | |
NoScriptResult | 18 | No result is available from the JavaScript execution. | |
XPathLookupError | 19 | The result from the JavaScript execution is not recognized. | |
NoSuchCollection | 20 | No collection matching the criteria exists. | |
Timeout | 21 | A timeout occurred. | |
NullPointer | 22 | A null pointer was received. | |
NoSuchWindow | 23 | No window matching the criteria exists. | |
InvalidCookieDomain | 24 | An illegal attempt was made to set a cookie under a different domain than the current page. | |
UnableToSetCookie | 25 | A request to set a cookie's value could not be satisfied. | |
UnexpectedAlertOpen | 26 | An alert was found open unexpectedly. | |
NoAlertPresent | 27 | A request was made to switch to an alert, but no alert is currently open. | |
AsyncScriptTimeout | 28 | An asynchronous JavaScript execution timed out. | |
InvalidElementCoordinates | 29 | The coordinates of the element are invalid. | |
InvalidSelector | 32 | The selector used (CSS/XPath) was invalid. |
See Also