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/Response.cs
+3-41
Original file line number
Diff line number
Diff line change
@@ -40,24 +40,6 @@ public class Response
40
40
Converters={newResponseValueJsonConverter()}// we still need it to make `Object` as `Dictionary`
41
41
};
42
42
43
-
/// <summary>
44
-
/// Initializes a new instance of the <see cref="Response"/> class
45
-
/// </summary>
46
-
[Obsolete("Set all values using the Response(string, object, WebDriverResult) constructor instead. This constructor will be removed in Selenium 4.30")]
47
-
publicResponse()
48
-
{
49
-
}
50
-
51
-
/// <summary>
52
-
/// Initializes a new instance of the <see cref="Response"/> class
53
-
/// </summary>
54
-
/// <param name="sessionId">Session ID in use</param>
55
-
[Obsolete("Set all values using the Response(string, object, WebDriverResult) constructor instead. This constructor will be removed in Selenium 4.30")]
56
-
publicResponse(SessionId?sessionId)
57
-
{
58
-
this.SessionId=sessionId?.ToString();
59
-
}
60
-
61
43
/// <summary>
62
44
/// Initializes a new instance of the <see cref="Response"/> class
63
45
/// </summary>
@@ -66,11 +48,9 @@ public Response(SessionId? sessionId)
66
48
/// <param name="status">The WebDriver result status of the response.</param>
Copy file name to clipboardExpand all lines: dotnet/src/webdriver/WebDriverResult.cs
-98
Original file line number
Diff line number
Diff line change
@@ -17,8 +17,6 @@
17
17
// under the License.
18
18
// </copyright>
19
19
20
-
usingSystem;
21
-
22
20
#nullable enable
23
21
24
22
namespaceOpenQA.Selenium
@@ -33,36 +31,6 @@ public enum WebDriverResult
33
31
/// </summary>
34
32
Success=0,
35
33
36
-
/// <summary>
37
-
/// The index specified for the action was out of the acceptable range.
38
-
/// </summary>
39
-
[Obsolete("This error status is no longer returned by the WebDriver Specification https://www.w3.org/TR/webdriver2/#errors. Will be removed in 4.30")]
40
-
IndexOutOfBounds=1,
41
-
42
-
/// <summary>
43
-
/// No collection was specified.
44
-
/// </summary>
45
-
[Obsolete("This error status is no longer returned by the WebDriver Specification https://www.w3.org/TR/webdriver2/#errors. Will be removed in 4.30")]
46
-
NoCollection=2,
47
-
48
-
/// <summary>
49
-
/// No string was specified.
50
-
/// </summary>
51
-
[Obsolete("This error status is no longer returned by the WebDriver Specification https://www.w3.org/TR/webdriver2/#errors. Will be removed in 4.30")]
52
-
NoString=3,
53
-
54
-
/// <summary>
55
-
/// No string length was specified.
56
-
/// </summary>
57
-
[Obsolete("This error status is no longer returned by the WebDriver Specification https://www.w3.org/TR/webdriver2/#errors. Will be removed in 4.30")]
58
-
NoStringLength=4,
59
-
60
-
/// <summary>
61
-
/// No string wrapper was specified.
62
-
/// </summary>
63
-
[Obsolete("This error status is no longer returned by the WebDriver Specification https://www.w3.org/TR/webdriver2/#errors. Will be removed in 4.30")]
64
-
NoStringWrapper=5,
65
-
66
34
/// <summary>
67
35
/// 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.
68
36
/// </summary>
@@ -88,12 +56,6 @@ public enum WebDriverResult
88
56
/// </summary>
89
57
ObsoleteElement=10,
90
58
91
-
/// <summary>
92
-
/// The specified element is not displayed.
93
-
/// </summary>
94
-
[Obsolete("This error status is no longer returned by the WebDriver Specification https://www.w3.org/TR/webdriver2/#errors. Will be removed in 4.30")]
95
-
ElementNotDisplayed=11,
96
-
97
59
/// <summary>
98
60
/// 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>.
99
61
/// </summary>
@@ -104,64 +66,16 @@ public enum WebDriverResult
104
66
/// </summary>
105
67
UnknownError=13,
106
68
107
-
/// <summary>
108
-
/// An unhandled error occurred.
109
-
/// </summary>
110
-
[Obsolete("This value is no longer set for unknown errors: use UnknownError instead. Will be removed in 4.30")]
111
-
UnhandledError=UnknownError,
112
-
113
-
/// <summary>
114
-
/// An error occurred, but it was expected.
115
-
/// </summary>
116
-
[Obsolete("This error status is no longer returned by the WebDriver Specification https://www.w3.org/TR/webdriver2/#errors. Will be removed in 4.30")]
117
-
ExpectedError=14,
118
-
119
-
/// <summary>
120
-
/// The specified element is not selected.
121
-
/// </summary>
122
-
[Obsolete("This error status is no longer returned by the WebDriver Specification https://www.w3.org/TR/webdriver2/#errors. Will be removed in 4.30")]
123
-
ElementNotSelectable=15,
124
-
125
-
/// <summary>
126
-
/// No document matching the criteria exists.
127
-
/// </summary>
128
-
[Obsolete("This error status is no longer returned by the WebDriver Specification https://www.w3.org/TR/webdriver2/#errors. Will be removed in 4.30")]
129
-
NoSuchDocument=16,
130
-
131
69
/// <summary>
132
70
/// An error occurred while executing JavaScript supplied by the user.
133
71
/// </summary>
134
72
UnexpectedJavaScriptError=17,
135
73
136
-
/// <summary>
137
-
/// No result is available from the JavaScript execution.
138
-
/// </summary>
139
-
[Obsolete("This error status is no longer returned by the WebDriver Specification https://www.w3.org/TR/webdriver2/#errors. Will be removed in 4.30")]
140
-
NoScriptResult=18,
141
-
142
-
/// <summary>
143
-
/// The result from the JavaScript execution is not recognized.
144
-
/// </summary>
145
-
[Obsolete("This error status is no longer returned by the WebDriver Specification https://www.w3.org/TR/webdriver2/#errors. Will be removed in 4.30")]
146
-
XPathLookupError=19,
147
-
148
-
/// <summary>
149
-
/// No collection matching the criteria exists.
150
-
/// </summary>
151
-
[Obsolete("This error status is no longer returned by the WebDriver Specification https://www.w3.org/TR/webdriver2/#errors. Will be removed in 4.30")]
152
-
NoSuchCollection=20,
153
-
154
74
/// <summary>
155
75
/// An operation did not complete before its timeout expired.
156
76
/// </summary>
157
77
Timeout=21,
158
78
159
-
/// <summary>
160
-
/// A null pointer was received.
161
-
/// </summary>
162
-
[Obsolete("This error status is no longer returned by the WebDriver Specification https://www.w3.org/TR/webdriver2/#errors. Will be removed in 4.30")]
163
-
NullPointer=22,
164
-
165
79
/// <summary>
166
80
/// A command to switch to a window could not be satisfied because the window could not be found.
167
81
/// </summary>
@@ -192,12 +106,6 @@ public enum WebDriverResult
192
106
/// </summary>
193
107
AsyncScriptTimeout=28,
194
108
195
-
/// <summary>
196
-
/// The coordinates of the element are invalid.
197
-
/// </summary>
198
-
[Obsolete("This error status is no longer returned by the WebDriver Specification https://www.w3.org/TR/webdriver2/#errors. Will be removed in 4.30")]
199
-
InvalidElementCoordinates=29,
200
-
201
109
/// <summary>
202
110
/// Argument was an invalid selector.
203
111
/// </summary>
@@ -213,12 +121,6 @@ public enum WebDriverResult
213
121
/// </summary>
214
122
MoveTargetOutOfBounds=34,
215
123
216
-
/// <summary>
217
-
/// The XPath selector was invalid.
218
-
/// </summary>
219
-
[Obsolete("This error status is no longer returned by the WebDriver Specification https://www.w3.org/TR/webdriver2/#errors. Will be removed in 4.30")]
220
-
InvalidXPathSelector=51,
221
-
222
124
/// <summary>
223
125
/// Navigation caused the user agent to hit a certificate warning, which is usually the result of an expired or invalid TLS certificate.
0 commit comments