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.

ElementNotDisplayed = 11

The specified element is not displayed.

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.

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.

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.

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.

Success = 0

The action was successful.

Timeout = 21

A timeout occurred.

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.