OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_TEST_WEBDRIVER_ERROR_CODES_H_ |
| 6 #define CHROME_TEST_WEBDRIVER_ERROR_CODES_H_ |
| 7 |
| 8 namespace webdriver { |
| 9 // These are the error codes defined in the WebDriver wire protcol. For more |
| 10 // information, see |
| 11 // http://code.google.com/p/selenium/wiki/JsonWireProtocol#Response_Status_Codes |
| 12 enum ErrorCode { |
| 13 kSuccess = 0, |
| 14 kNoSuchElement = 7, |
| 15 kNoSuchFrame = 8, |
| 16 kUnknownCommand = 9, |
| 17 kStaleElementReference = 10, |
| 18 kElementNotVisible = 11, |
| 19 kInvalidElementState = 12, |
| 20 kUnknownError = 13, |
| 21 kElementNotSelectable = 15, |
| 22 kXPathLookupError = 19, |
| 23 kNoSuchWindow = 23, |
| 24 kInvalidCookieDomain = 24, |
| 25 kUnableToSetCookie = 25, |
| 26 kSeeOther = 303, |
| 27 kBadRequest = 400, |
| 28 kSessionNotFound = 404, |
| 29 kMethodNotAllowed = 405, |
| 30 }; |
| 31 } // namespace webdriver |
| 32 #endif // CHROME_TEST_WEBDRIVER_ERROR_CODES_H_ |
| 33 |
OLD | NEW |