| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_TEST_CHROMEDRIVER_STATUS_H_ | 5 #ifndef CHROME_TEST_CHROMEDRIVER_STATUS_H_ |
| 6 #define CHROME_TEST_CHROMEDRIVER_STATUS_H_ | 6 #define CHROME_TEST_CHROMEDRIVER_STATUS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 // WebDriver standard status codes. | 10 // WebDriver standard status codes. |
| 11 enum StatusCode { | 11 enum StatusCode { |
| 12 kOk = 0, | 12 kOk = 0, |
| 13 kNoSuchElement = 7, | 13 kNoSuchElement = 7, |
| 14 kUnknownCommand = 9, | 14 kUnknownCommand = 9, |
| 15 kStaleElementReference = 10, | 15 kStaleElementReference = 10, |
| 16 kElementNotVisible = 11, | 16 kElementNotVisible = 11, |
| 17 kInvalidElementState = 12, | 17 kInvalidElementState = 12, |
| 18 kUnknownError = 13, | 18 kUnknownError = 13, |
| 19 kJavaScriptError = 17, |
| 19 kXPathLookupError = 19, | 20 kXPathLookupError = 19, |
| 21 kTimeout = 21, |
| 20 kNoSuchWindow = 23, | 22 kNoSuchWindow = 23, |
| 21 kUnexpectedAlertOpen = 26, | 23 kUnexpectedAlertOpen = 26, |
| 22 kNoAlertOpen = 27, | 24 kNoAlertOpen = 27, |
| 23 kInvalidSelector = 32, | 25 kInvalidSelector = 32, |
| 24 kSessionNotCreatedException = 33, | 26 kSessionNotCreatedException = 33, |
| 25 // Chrome-specific status codes. | 27 // Chrome-specific status codes. |
| 26 kNoSuchSession = 100, | 28 kNoSuchSession = 100, |
| 27 kNoSuchFrame, | 29 kNoSuchFrame, |
| 28 kChromeNotReachable, | 30 kChromeNotReachable, |
| 29 kDisconnected, | 31 kDisconnected, |
| (...skipping 16 matching lines...) Expand all Loading... |
| 46 StatusCode code() const; | 48 StatusCode code() const; |
| 47 | 49 |
| 48 const std::string& message() const; | 50 const std::string& message() const; |
| 49 | 51 |
| 50 private: | 52 private: |
| 51 StatusCode code_; | 53 StatusCode code_; |
| 52 std::string msg_; | 54 std::string msg_; |
| 53 }; | 55 }; |
| 54 | 56 |
| 55 #endif // CHROME_TEST_CHROMEDRIVER_STATUS_H_ | 57 #endif // CHROME_TEST_CHROMEDRIVER_STATUS_H_ |
| OLD | NEW |