@@ -26,24 +26,51 @@ namespace OpenQA.Selenium.Remote
26
26
/// </summary>
27
27
internal static class WebDriverError
28
28
{
29
+ /// <summary>
30
+ /// Represents the element click intercepted error.
31
+ /// </summary>
32
+ public const string ElementClickIntercepted = "element click intercepted" ;
33
+
29
34
/// <summary>
30
35
/// Represents the element not selectable error.
31
36
/// </summary>
32
37
public const string ElementNotSelectable = "element not selectable" ;
33
38
39
+ /// <summary>
40
+ /// Represents the element not interactable error.
41
+ /// </summary>
42
+ public const string ElementNotInteractable = "element not interactable" ;
43
+
34
44
/// <summary>
35
45
/// Represents the element not visible error.
36
46
/// </summary>
47
+ /// TODO: Remove this string; it is no longer valid in the specification.
37
48
public const string ElementNotVisible = "element not visible" ;
38
49
50
+ /// <summary>
51
+ /// Represents the insecure certificate error.
52
+ /// </summary>
53
+ public const string InsecureCertificate = "insecure certificate" ;
54
+
39
55
/// <summary>
40
56
/// Represents the invalid argument error.
41
57
/// </summary>
42
58
public const string InvalidArgument = "invalid argument" ;
43
59
60
+ /// <summary>
61
+ /// Represents the invalid cookie domain error.
62
+ /// </summary>
63
+ public const string InvalidCookieDomain = "invalid cookie domain" ;
64
+
65
+ /// <summary>
66
+ /// Represents the invalid coordinates error.
67
+ /// </summary>
68
+ public const string InvalidCoordinates = "invalid coordinates" ;
69
+
44
70
/// <summary>
45
71
/// Represents the invalid element coordinates error.
46
72
/// </summary>
73
+ /// TODO: Remove this string; it is no longer valid in the specification.
47
74
public const string InvalidElementCoordinates = "invalid element coordinates" ;
48
75
49
76
/// <summary>
@@ -76,6 +103,11 @@ internal static class WebDriverError
76
103
/// </summary>
77
104
public const string NoSuchAlert = "no such alert" ;
78
105
106
+ /// <summary>
107
+ /// Represents the no such cookie error.
108
+ /// </summary>
109
+ public const string NoSuchCookie = "no such cookie" ;
110
+
79
111
/// <summary>
80
112
/// Represents the no such element error.
81
113
/// </summary>
@@ -173,14 +205,19 @@ private static void InitializeResultMap()
173
205
resultMap = new Dictionary < string , WebDriverResult > ( ) ;
174
206
resultMap [ ElementNotSelectable ] = WebDriverResult . ElementNotSelectable ;
175
207
resultMap [ ElementNotVisible ] = WebDriverResult . ElementNotDisplayed ;
208
+ resultMap [ ElementNotInteractable ] = WebDriverResult . ElementNotDisplayed ;
209
+ resultMap [ InsecureCertificate ] = WebDriverResult . InsecureCertificate ;
176
210
resultMap [ InvalidArgument ] = WebDriverResult . IndexOutOfBounds ;
211
+ resultMap [ InvalidCookieDomain ] = WebDriverResult . InvalidCookieDomain ;
212
+ resultMap [ InvalidCoordinates ] = WebDriverResult . InvalidElementCoordinates ;
177
213
resultMap [ InvalidElementCoordinates ] = WebDriverResult . InvalidElementCoordinates ;
178
214
resultMap [ InvalidElementState ] = WebDriverResult . InvalidElementState ;
179
215
resultMap [ InvalidSelector ] = WebDriverResult . InvalidSelector ;
180
216
resultMap [ InvalidSessionId ] = WebDriverResult . NoSuchDriver ;
181
217
resultMap [ JavaScriptError ] = WebDriverResult . UnexpectedJavaScriptError ;
182
218
resultMap [ MoveTargetOutOfBounds ] = WebDriverResult . InvalidElementCoordinates ;
183
219
resultMap [ NoSuchAlert ] = WebDriverResult . NoAlertPresent ;
220
+ resultMap [ NoSuchCookie ] = WebDriverResult . NoSuchCookie ;
184
221
resultMap [ NoSuchElement ] = WebDriverResult . NoSuchElement ;
185
222
resultMap [ NoSuchFrame ] = WebDriverResult . NoSuchFrame ;
186
223
resultMap [ NoSuchWindow ] = WebDriverResult . NoSuchWindow ;
0 commit comments