// <copyright file="WebDriverResult.cs" company="WebDriver Committers"> | |
// Copyright 2007-2011 WebDriver committers | |
// Copyright 2007-2011 Google Inc. | |
// Portions copyright 2011 Software Freedom Conservancy | |
// | |
// Licensed under the Apache License, Version 2.0 (the "License"); | |
// you may not use this file except in compliance with the License. | |
// You may obtain a copy of the License at | |
// | |
// http://www.apache.org/licenses/LICENSE-2.0 | |
// | |
// Unless required by applicable law or agreed to in writing, software | |
// distributed under the License is distributed on an "AS IS" BASIS, | |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
// See the License for the specific language governing permissions and | |
// limitations under the License. | |
// </copyright> | |
namespace OpenQA.Selenium | |
{ | |
/// <summary> | |
/// Specifies return values for actions in the driver. | |
/// </summary> | |
public enum WebDriverResult | |
{ | |
/// <summary> | |
/// The action was successful. | |
/// </summary> | |
Success = 0, | |
/// <summary> | |
/// The index specified for the action was out of the acceptable range. | |
/// </summary> | |
IndexOutOfBounds = 1, | |
/// <summary> | |
/// No collection was specified. | |
/// </summary> | |
NoCollection = 2, | |
/// <summary> | |
/// No string was specified. | |
/// </summary> | |
NoString = 3, | |
/// <summary> | |
/// No string length was specified. | |
/// </summary> | |
NoStringLength = 4, | |
/// <summary> | |
/// No string wrapper was specified. | |
/// </summary> | |
NoStringWrapper = 5, | |
/// <summary> | |
/// No driver matching the criteria exists. | |
/// </summary> | |
NoSuchDriver = 6, | |
/// <summary> | |
/// No element matching the criteria exists. | |
/// </summary> | |
NoSuchElement = 7, | |
/// <summary> | |
/// No frame matching the criteria exists. | |
/// </summary> | |
NoSuchFrame = 8, | |
/// <summary> | |
/// The functionality is not supported. | |
/// </summary> | |
UnknownCommand = 9, | |
/// <summary> | |
/// The specified element is no longer valid. | |
/// </summary> | |
ObsoleteElement = 10, | |
/// <summary> | |
/// The specified element is not displayed. | |
/// </summary> | |
ElementNotDisplayed = 11, | |
/// <summary> | |
/// The specified element is not enabled. | |
/// </summary> | |
InvalidElementState = 12, | |
/// <summary> | |
/// An unhandled error occurred. | |
/// </summary> | |
UnhandledError = 13, | |
/// <summary> | |
/// An error occurred, but it was expected. | |
/// </summary> | |
ExpectedError = 14, | |
/// <summary> | |
/// The specified element is not selected. | |
/// </summary> | |
ElementNotSelectable = 15, | |
/// <summary> | |
/// No document matching the criteria exists. | |
/// </summary> | |
NoSuchDocument = 16, | |
/// <summary> | |
/// An unexpected JavaScript error occurred. | |
/// </summary> | |
UnexpectedJavaScriptError = 17, | |
/// <summary> | |
/// No result is available from the JavaScript execution. | |
/// </summary> | |
NoScriptResult = 18, | |
/// <summary> | |
/// The result from the JavaScript execution is not recognized. | |
/// </summary> | |
XPathLookupError = 19, | |
/// <summary> | |
/// No collection matching the criteria exists. | |
/// </summary> | |
NoSuchCollection = 20, | |
/// <summary> | |
/// A timeout occurred. | |
/// </summary> | |
Timeout = 21, | |
/// <summary> | |
/// A null pointer was received. | |
/// </summary> | |
NullPointer = 22, | |
/// <summary> | |
/// No window matching the criteria exists. | |
/// </summary> | |
NoSuchWindow = 23, | |
/// <summary> | |
/// An illegal attempt was made to set a cookie under a different domain than the current page. | |
/// </summary> | |
InvalidCookieDomain = 24, | |
/// <summary> | |
/// A request to set a cookie's value could not be satisfied. | |
/// </summary> | |
UnableToSetCookie = 25, | |
/// <summary> | |
/// An alert was found open unexpectedly. | |
/// </summary> | |
UnexpectedAlertOpen = 26, | |
/// <summary> | |
/// A request was made to switch to an alert, but no alert is currently open. | |
/// </summary> | |
NoAlertPresent = 27, | |
/// <summary> | |
/// An asynchronous JavaScript execution timed out. | |
/// </summary> | |
AsyncScriptTimeout = 28, | |
/// <summary> | |
/// The coordinates of the element are invalid. | |
/// </summary> | |
InvalidElementCoordinates = 29, | |
/// <summary> | |
/// The selector used (CSS/XPath) was invalid. | |
/// </summary> | |
InvalidSelector = 32 | |
} | |
} |