Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
seleniumhq
GitHub Repository: seleniumhq/selenium
Path: blob/trunk/cpp/webdriver-server/errorcodes.h
2867 views
1
// Licensed to the Software Freedom Conservancy (SFC) under one
2
// or more contributor license agreements. See the NOTICE file
3
// distributed with this work for additional information
4
// regarding copyright ownership. The SFC licenses this file
5
// to you under the Apache License, Version 2.0 (the "License");
6
// you may not use this file except in compliance with the License.
7
// You may obtain a copy of the License at
8
//
9
// http://www.apache.org/licenses/LICENSE-2.0
10
//
11
// Unless required by applicable law or agreed to in writing, software
12
// distributed under the License is distributed on an "AS IS" BASIS,
13
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
// See the License for the specific language governing permissions and
15
// limitations under the License.
16
17
#ifndef WEBDRIVER_SERVER_ERRORCODES_H_
18
#define WEBDRIVER_SERVER_ERRORCODES_H_
19
20
#define WD_SUCCESS 0
21
22
#define EINDEXOUTOFBOUNDS 1
23
#define ENOCOLLECTION 2
24
#define ENOSTRING 3
25
#define ENOSTRINGLENGTH 4
26
#define ENOSTRINGWRAPPER 5
27
#define ENOSUCHDRIVER 6
28
#define ENOSUCHELEMENT 7
29
#define ENOSUCHFRAME 8
30
#define ENOTIMPLEMENTED 9
31
#define EOBSOLETEELEMENT 10
32
#define EELEMENTNOTDISPLAYED 11
33
#define EELEMENTNOTENABLED 12
34
#define EUNHANDLEDERROR 13
35
#define EEXPECTEDERROR 14
36
#define EELEMENTNOTSELECTED 15
37
#define ENOSUCHDOCUMENT 16
38
#define EUNEXPECTEDJSERROR 17
39
#define ENOSCRIPTRESULT 18
40
#define EUNKNOWNSCRIPTRESULT 19
41
#define ENOSUCHCOLLECTION 20
42
#define ETIMEOUT 21
43
#define ENULLPOINTER 22
44
#define ENOSUCHWINDOW 23
45
#define EINVALIDCOOKIEDOMAIN 24
46
#define EUNABLETOSETCOOKIE 25
47
#define EUNEXPECTEDALERTOPEN 26
48
#define ENOSUCHALERT 27
49
#define ESCRIPTTIMEOUT 28
50
#define EINVALIDCOORDINATES 29
51
#define EINVALIDSELECTOR 32
52
#define ECLICKINTERCEPTED 33
53
#define EMOVETARGETOUTOFBOUNDS 34
54
#define ENOSUCHCOOKIE 35
55
#define EUNSUPPORTEDOPERATION 36
56
#define EINVALIDARGUMENT 62
57
58
#define ERROR_ELEMENT_CLICK_INTERCEPTED "element click intercepted"
59
#define ERROR_ELEMENT_NOT_SELECTABLE "element not selectable"
60
#define ERROR_ELEMENT_NOT_INTERACTABLE "element not interactable"
61
#define ERROR_INSECURE_CERTIFICATE "insecure certificate"
62
#define ERROR_INVALID_ARGUMENT "invalid argument"
63
#define ERROR_INVALID_COOKIE_DOMAIN "invalid cookie domain"
64
#define ERROR_INVALID_COORDINATES "invalid coordinates"
65
#define ERROR_INVALID_ELEMENT_STATE "invalid element state"
66
#define ERROR_INVALID_SELECTOR "invalid selector"
67
#define ERROR_INVALID_SESSION_ID "invalid session id"
68
#define ERROR_JAVASCRIPT_ERROR "javascript error"
69
#define ERROR_MOVE_TARGET_OUT_OF_BOUNDS "move target out of bounds"
70
#define ERROR_NO_SUCH_ALERT "no such alert"
71
#define ERROR_NO_SUCH_COOKIE "no such cookie"
72
#define ERROR_NO_SUCH_ELEMENT "no such element"
73
#define ERROR_NO_SUCH_FRAME "no such frame"
74
#define ERROR_NO_SUCH_WINDOW "no such window"
75
#define ERROR_SCRIPT_TIMEOUT "script timeout"
76
#define ERROR_SESSION_NOT_CREATED "session not created"
77
#define ERROR_STALE_ELEMENT_REFERENCE "stale element reference"
78
#define ERROR_WEBDRIVER_TIMEOUT "timeout"
79
#define ERROR_UNABLE_TO_SET_COOKIE "unable to set cookie"
80
#define ERROR_UNABLE_TO_CAPTURE_SCREEN "unable to capture screen"
81
#define ERROR_UNEXPECTED_ALERT_OPEN "unexpected alert open"
82
#define ERROR_UNKNOWN_COMMAND "unknown command"
83
#define ERROR_UNKNOWN_ERROR "unknown error"
84
#define ERROR_UNKNOWN_METHOD "unknown method"
85
#define ERROR_UNSUPPORTED_OPERATION "unsupported operation"
86
87
#endif // WEBDRIVER_SERVER_ERRORCODES_H_
88
89