@@ -27,32 +27,16 @@ namespace OpenQA.Selenium
27
27
/// </summary>
28
28
internal static class WebDriverError
29
29
{
30
- /// <summary>
31
- /// Represents the detached shadow root error.
32
- /// </summary>
33
- public const string DetachedShadowRoot = "detached shadow root" ;
34
-
35
30
/// <summary>
36
31
/// Represents the element click intercepted error.
37
32
/// </summary>
38
33
public const string ElementClickIntercepted = "element click intercepted" ;
39
34
40
- /// <summary>
41
- /// Represents the element not selectable error.
42
- /// </summary>
43
- public const string ElementNotSelectable = "element not selectable" ;
44
-
45
35
/// <summary>
46
36
/// Represents the element not interactable error.
47
37
/// </summary>
48
38
public const string ElementNotInteractable = "element not interactable" ;
49
39
50
- /// <summary>
51
- /// Represents the element not visible error.
52
- /// </summary>
53
- /// TODO: Remove this string; it is no longer valid in the specification.
54
- public const string ElementNotVisible = "element not visible" ;
55
-
56
40
/// <summary>
57
41
/// Represents the insecure certificate error.
58
42
/// </summary>
@@ -68,17 +52,6 @@ internal static class WebDriverError
68
52
/// </summary>
69
53
public const string InvalidCookieDomain = "invalid cookie domain" ;
70
54
71
- /// <summary>
72
- /// Represents the invalid coordinates error.
73
- /// </summary>
74
- public const string InvalidCoordinates = "invalid coordinates" ;
75
-
76
- /// <summary>
77
- /// Represents the invalid element coordinates error.
78
- /// </summary>
79
- /// TODO: Remove this string; it is no longer valid in the specification.
80
- public const string InvalidElementCoordinates = "invalid element coordinates" ;
81
-
82
55
/// <summary>
83
56
/// Represents the invalid element state error.
84
57
/// </summary>
@@ -149,6 +122,11 @@ internal static class WebDriverError
149
122
/// </summary>
150
123
public const string StaleElementReference = "stale element reference" ;
151
124
125
+ /// <summary>
126
+ /// Represents the detached shadow root error.
127
+ /// </summary>
128
+ public const string DetachedShadowRoot = "detached shadow root" ;
129
+
152
130
/// <summary>
153
131
/// Represents the timeout error.
154
132
/// </summary>
@@ -194,16 +172,11 @@ internal static class WebDriverError
194
172
static WebDriverError ( )
195
173
{
196
174
resultMap = new Dictionary < string , WebDriverResult > ( ) ;
197
- resultMap [ DetachedShadowRoot ] = WebDriverResult . DetachedShadowRoot ;
198
175
resultMap [ ElementClickIntercepted ] = WebDriverResult . ElementClickIntercepted ;
199
- resultMap [ ElementNotSelectable ] = WebDriverResult . ElementNotSelectable ;
200
- resultMap [ ElementNotVisible ] = WebDriverResult . ElementNotDisplayed ;
201
176
resultMap [ ElementNotInteractable ] = WebDriverResult . ElementNotInteractable ;
202
177
resultMap [ InsecureCertificate ] = WebDriverResult . InsecureCertificate ;
203
178
resultMap [ InvalidArgument ] = WebDriverResult . InvalidArgument ;
204
179
resultMap [ InvalidCookieDomain ] = WebDriverResult . InvalidCookieDomain ;
205
- resultMap [ InvalidCoordinates ] = WebDriverResult . InvalidElementCoordinates ;
206
- resultMap [ InvalidElementCoordinates ] = WebDriverResult . InvalidElementCoordinates ;
207
180
resultMap [ InvalidElementState ] = WebDriverResult . InvalidElementState ;
208
181
resultMap [ InvalidSelector ] = WebDriverResult . InvalidSelector ;
209
182
resultMap [ InvalidSessionId ] = WebDriverResult . NoSuchDriver ;
@@ -218,14 +191,15 @@ static WebDriverError()
218
191
resultMap [ ScriptTimeout ] = WebDriverResult . AsyncScriptTimeout ;
219
192
resultMap [ SessionNotCreated ] = WebDriverResult . SessionNotCreated ;
220
193
resultMap [ StaleElementReference ] = WebDriverResult . ObsoleteElement ;
194
+ resultMap [ DetachedShadowRoot ] = WebDriverResult . DetachedShadowRoot ;
221
195
resultMap [ Timeout ] = WebDriverResult . Timeout ;
222
196
resultMap [ UnableToSetCookie ] = WebDriverResult . UnableToSetCookie ;
223
197
resultMap [ UnableToCaptureScreen ] = WebDriverResult . UnableToCaptureScreen ;
224
198
resultMap [ UnexpectedAlertOpen ] = WebDriverResult . UnexpectedAlertOpen ;
225
199
resultMap [ UnknownCommand ] = WebDriverResult . UnknownCommand ;
226
- resultMap [ UnknownError ] = WebDriverResult . UnhandledError ;
227
- resultMap [ UnknownMethod ] = WebDriverResult . UnknownCommand ;
228
- resultMap [ UnsupportedOperation ] = WebDriverResult . UnhandledError ;
200
+ resultMap [ UnknownError ] = WebDriverResult . UnknownError ;
201
+ resultMap [ UnknownMethod ] = WebDriverResult . UnknownMethod ;
202
+ resultMap [ UnsupportedOperation ] = WebDriverResult . UnsupportedOperation ;
229
203
}
230
204
231
205
/// <summary>
0 commit comments