Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(870)

Side by Side Diff: chrome/test/chromedriver/status.h

Issue 11884058: [chromedriver] Implement commands: findChildElement, findChildElements. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/test/chromedriver/run_py_tests.py ('k') | chrome/test/chromedriver/status.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/test/chromedriver/run_py_tests.py ('k') | chrome/test/chromedriver/status.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698