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 kUnknownError = 13, | 16 kUnknownError = 13, |
16 kXPathLookupError = 19, | 17 kXPathLookupError = 19, |
17 kInvalidSelector = 32, | 18 kInvalidSelector = 32, |
18 kSessionNotCreatedException = 33, | 19 kSessionNotCreatedException = 33, |
19 // Chrome-specific status codes. | 20 // Chrome-specific status codes. |
20 kNoSuchSession = 100, | 21 kNoSuchSession = 100, |
21 kChromeNotReachable, | 22 kChromeNotReachable, |
22 }; | 23 }; |
23 | 24 |
24 // Represents a WebDriver status, which may be an error or ok. | 25 // Represents a WebDriver status, which may be an error or ok. |
(...skipping 11 matching lines...) Expand all Loading... |
36 StatusCode code() const; | 37 StatusCode code() const; |
37 | 38 |
38 const std::string& message() const; | 39 const std::string& message() const; |
39 | 40 |
40 private: | 41 private: |
41 StatusCode code_; | 42 StatusCode code_; |
42 std::string msg_; | 43 std::string msg_; |
43 }; | 44 }; |
44 | 45 |
45 #endif // CHROME_TEST_CHROMEDRIVER_STATUS_H_ | 46 #endif // CHROME_TEST_CHROMEDRIVER_STATUS_H_ |
OLD | NEW |