summaryrefslogtreecommitdiffstats
path: root/chrome/test/webdriver/error_codes.h
blob: ed5a83f3abfcaaa4d933c5218cc05120c9f02154 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_TEST_WEBDRIVER_ERROR_CODES_H_
#define CHROME_TEST_WEBDRIVER_ERROR_CODES_H_

namespace webdriver {
// These are the error codes defined in the WebDriver wire protcol. For more
// information, see:
// http://code.google.com/p/selenium/wiki/JsonWireProtocol#Response_Status_Codes
enum ErrorCode {
  kSuccess = 0,
  kNoSuchElement = 7,
  kNoSuchFrame = 8,
  kUnknownCommand = 9,
  kStaleElementReference = 10,
  kElementNotVisible = 11,
  kInvalidElementState = 12,
  kUnknownError = 13,
  kElementNotSelectable = 15,
  kXPathLookupError = 19,
  kNoSuchWindow = 23,
  kInvalidCookieDomain = 24,
  kUnableToSetCookie = 25,
  kSeeOther = 303,
  kBadRequest = 400,
  kSessionNotFound = 404,
  kMethodNotAllowed = 405,
  kInternalServerError = 500,
};

}  // namespace webdriver

#endif  // CHROME_TEST_WEBDRIVER_ERROR_CODES_H_