You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dotnet/src/webdriver/WebDriverResult.cs
+38-25Lines changed: 38 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,8 @@
17
17
// under the License.
18
18
// </copyright>
19
19
20
+
usingSystem;
21
+
20
22
namespaceOpenQA.Selenium
21
23
{
22
24
/// <summary>
@@ -55,27 +57,27 @@ public enum WebDriverResult
55
57
NoStringWrapper=5,
56
58
57
59
/// <summary>
58
-
/// No driver matching the criteria exists.
60
+
/// Occurs if the given <see href="https://www.w3.org/TR/webdriver2/#dfn-session-id">session id</see> is not in the list of <see href="https://www.w3.org/TR/webdriver2/#dfn-active-sessions">active sessions</see>, meaning the session either does not exist or that it's not active.
59
61
/// </summary>
60
62
NoSuchDriver=6,
61
63
62
64
/// <summary>
63
-
/// No element matching the criteria exists.
65
+
/// An element could not be located on the page using the given search parameters.
64
66
/// </summary>
65
67
NoSuchElement=7,
66
68
67
69
/// <summary>
68
-
/// No frame matching the criteria exists.
70
+
/// A command to switch to a frame could not be satisfied because the frame could not be found.
69
71
/// </summary>
70
72
NoSuchFrame=8,
71
73
72
74
/// <summary>
73
-
/// The functionality is not supported.
75
+
/// A command could not be executed because the <see href="https://www.w3.org/TR/webdriver2/#dfn-remote-ends">remote end</see> is not aware of it.
74
76
/// </summary>
75
77
UnknownCommand=9,
76
78
77
79
/// <summary>
78
-
/// The specified element is no longer valid.
80
+
/// A command failed because the referenced element is no longer attached to the DOM.
79
81
/// </summary>
80
82
ObsoleteElement=10,
81
83
@@ -85,15 +87,21 @@ public enum WebDriverResult
85
87
ElementNotDisplayed=11,
86
88
87
89
/// <summary>
88
-
/// The specified element is not enabled.
90
+
/// A command could not be completed because the element is in an invalid state, e.g. attempting to <see href="https://www.w3.org/TR/webdriver2/#dfn-element-clear">clear</see> an element that isn't both <see href="https://www.w3.org/TR/webdriver2/#dfn-editable">editable</see> and <see href="https://www.w3.org/TR/webdriver2/#dfn-resettable-elements">resettable</see>.
89
91
/// </summary>
90
92
InvalidElementState=12,
91
93
92
94
/// <summary>
93
-
/// An unknown error occurred in the remote end while processing the command.
95
+
/// An unknown error occurred in the <see href="https://www.w3.org/TR/webdriver2/#dfn-remote-ends">remote end</see> while processing the command.
94
96
/// </summary>
95
97
UnknownError=13,
96
98
99
+
/// <summary>
100
+
/// An unhandled error occurred.
101
+
/// </summary>
102
+
[Obsolete("This value is no longer set for unknown errors: use UnknownError instead")]
103
+
UnhandledError=UnknownError,
104
+
97
105
/// <summary>
98
106
/// An error occurred, but it was expected.
99
107
/// </summary>
@@ -110,7 +118,7 @@ public enum WebDriverResult
110
118
NoSuchDocument=16,
111
119
112
120
/// <summary>
113
-
/// An unexpected JavaScript error occurred.
121
+
/// An error occurred while executing JavaScript supplied by the user.
114
122
/// </summary>
115
123
UnexpectedJavaScriptError=17,
116
124
@@ -130,7 +138,7 @@ public enum WebDriverResult
130
138
NoSuchCollection=20,
131
139
132
140
/// <summary>
133
-
/// A timeout occurred.
141
+
/// An operation did not complete before its timeout expired.
134
142
/// </summary>
135
143
Timeout=21,
136
144
@@ -140,32 +148,32 @@ public enum WebDriverResult
140
148
NullPointer=22,
141
149
142
150
/// <summary>
143
-
/// No window matching the criteria exists.
151
+
/// A command to switch to a window could not be satisfied because the window could not be found.
144
152
/// </summary>
145
153
NoSuchWindow=23,
146
154
147
155
/// <summary>
148
-
/// An illegal attempt was made to set a cookie under a different domain than the current page.
156
+
/// An illegal attempt was made to set a cookie under a different domain than the current page..
149
157
/// </summary>
150
158
InvalidCookieDomain=24,
151
159
152
160
/// <summary>
153
-
/// A request to set a cookie's value could not be satisfied.
161
+
/// A command to set a cookie's value could not be satisfied.
154
162
/// </summary>
155
163
UnableToSetCookie=25,
156
164
157
165
/// <summary>
158
-
/// An alert was found open unexpectedly.
166
+
/// A modal dialog was open, blocking this operation.
159
167
/// </summary>
160
168
UnexpectedAlertOpen=26,
161
169
162
170
/// <summary>
163
-
/// A request was made to switch to an alert, but no alert is currently open.
171
+
/// An attempt was made to operate on a modal dialog when one was not open.
164
172
/// </summary>
165
173
NoAlertPresent=27,
166
174
167
175
/// <summary>
168
-
/// An asynchronous JavaScript execution timed out.
176
+
/// A script did not complete before its timeout expired.
169
177
/// </summary>
170
178
AsyncScriptTimeout=28,
171
179
@@ -175,17 +183,17 @@ public enum WebDriverResult
175
183
InvalidElementCoordinates=29,
176
184
177
185
/// <summary>
178
-
/// The selector used (CSS/XPath) was invalid.
186
+
/// Argument was an invalid selector.
179
187
/// </summary>
180
188
InvalidSelector=32,
181
189
182
190
/// <summary>
183
-
/// A session was not created by the driver
191
+
/// A new <see href="https://www.w3.org/TR/webdriver2/#dfn-sessions">session</see> could not be created.
184
192
/// </summary>
185
193
SessionNotCreated=33,
186
194
187
195
/// <summary>
188
-
/// The requested move was outside the active view port
196
+
/// The target for mouse interaction is not in the browser's viewport and cannot be brought into that viewport.
189
197
/// </summary>
190
198
MoveTargetOutOfBounds=34,
191
199
@@ -195,32 +203,32 @@ public enum WebDriverResult
195
203
InvalidXPathSelector=51,
196
204
197
205
/// <summary>
198
-
/// An insecure SSl certificate was specified.
206
+
/// Navigation caused the user agent to hit a certificate warning, which is usually the result of an expired or invalid TLS certificate.
199
207
/// </summary>
200
208
InsecureCertificate=59,
201
209
202
210
/// <summary>
203
-
/// The element was not interactable
211
+
/// A command could not be completed because the element is not <see href="https://www.w3.org/TR/webdriver2/#dfn-pointer-interactable">pointer</see>- or <see href="https://www.w3.org/TR/webdriver2/#dfn-keyboard-interactable">keyboard</see> interactable.
204
212
/// </summary>
205
213
ElementNotInteractable=60,
206
214
207
215
/// <summary>
208
-
/// An invalid argument was passed to the command.
216
+
/// The arguments passed to a command are either invalid or malformed.
209
217
/// </summary>
210
218
InvalidArgument=61,
211
219
212
220
/// <summary>
213
-
/// No cookie was found matching the name requested.
221
+
/// No cookie matching the given path name was found amongst the <see href="https://www.w3.org/TR/webdriver2/#dfn-associated-cookies">associated cookies</see> of session's current browsing context's active document.
214
222
/// </summary>
215
223
NoSuchCookie=62,
216
224
217
225
/// <summary>
218
-
/// The driver was unable to capture the screen.
226
+
/// A screen capture was made impossible.
219
227
/// </summary>
220
228
UnableToCaptureScreen=63,
221
229
222
230
/// <summary>
223
-
/// The click on the element was intercepted by a different element.
231
+
/// The <see href="https://www.w3.org/TR/webdriver2/#dfn-element-click">Element Click</see> command could not be completed because the element receiving the events is <see href="https://www.w3.org/TR/webdriver2/#dfn-obscuring">obscuring</see> the element that was requested clicked.
224
232
/// </summary>
225
233
ElementClickIntercepted=64,
226
234
@@ -234,9 +242,14 @@ public enum WebDriverResult
234
242
/// </summary>
235
243
DetachedShadowRoot=66,
236
244
245
+
/// <summary>
246
+
/// The requested command matched a known URL but did not match any method for that URL.
247
+
/// </summary>
248
+
UnknownMethod=67,
249
+
237
250
/// <summary>
238
251
/// Indicates that a command that should have executed properly cannot be supported for some reason.
0 commit comments