Table of Contents

Enum WebDriverResult

Namespace
OpenQA.Selenium
Assembly
WebDriver.dll

Specifies return values for actions in the driver.

public enum WebDriverResult

Fields

AsyncScriptTimeout = 28

An asynchronous JavaScript execution timed out.

ElementClickIntercepted = 64

The click on the element was intercepted by a different element.

ElementNotDisplayed = 11

The specified element is not displayed.

ElementNotInteractable = 60

The element was not interactable

ElementNotSelectable = 15

The specified element is not selected.

ExpectedError = 14

An error occurred, but it was expected.

IndexOutOfBounds = 1

The index specified for the action was out of the acceptable range.

InsecureCertificate = 59

An insecure SSl certificate was specified.

InvalidArgument = 61

An invalid argument was passed to the command.

InvalidCookieDomain = 24

An illegal attempt was made to set a cookie under a different domain than the current page.

InvalidElementCoordinates = 29

The coordinates of the element are invalid.

InvalidElementState = 12

The specified element is not enabled.

InvalidSelector = 32

The selector used (CSS/XPath) was invalid.

InvalidXPathSelector = 51

The XPath selector was invalid.

MoveTargetOutOfBounds = 34

The requested move was outside the active view port

NoAlertPresent = 27

A request was made to switch to an alert, but no alert is currently open.

NoCollection = 2

No collection was specified.

NoScriptResult = 18

No result is available from the JavaScript execution.

NoString = 3

No string was specified.

NoStringLength = 4

No string length was specified.

NoStringWrapper = 5

No string wrapper was specified.

NoSuchCollection = 20

No collection matching the criteria exists.

NoSuchCookie = 62

No cookie was found matching the name requested.

NoSuchDocument = 16

No document matching the criteria exists.

NoSuchDriver = 6

No driver matching the criteria exists.

NoSuchElement = 7

No element matching the criteria exists.

NoSuchFrame = 8

No frame matching the criteria exists.

NoSuchWindow = 23

No window matching the criteria exists.

NullPointer = 22

A null pointer was received.

ObsoleteElement = 10

The specified element is no longer valid.

SessionNotCreated = 33

A session was not created by the driver

Success = 0

The action was successful.

Timeout = 21

A timeout occurred.

UnableToCaptureScreen = 63

The driver was unable to capture the screen.

UnableToSetCookie = 25

A request to set a cookie's value could not be satisfied.

UnexpectedAlertOpen = 26

An alert was found open unexpectedly.

UnexpectedJavaScriptError = 17

An unexpected JavaScript error occurred.

UnhandledError = 13

An unhandled error occurred.

UnknownCommand = 9

The functionality is not supported.

XPathLookupError = 19

The result from the JavaScript execution is not recognized.