@@ -27,32 +27,16 @@ namespace OpenQA.Selenium
2727 /// </summary>
2828 internal static class WebDriverError
2929 {
30- /// <summary>
31- /// Represents the detached shadow root error.
32- /// </summary>
33- public const string DetachedShadowRoot = "detached shadow root" ;
34-
3530 /// <summary>
3631 /// Represents the element click intercepted error.
3732 /// </summary>
3833 public const string ElementClickIntercepted = "element click intercepted" ;
3934
40- /// <summary>
41- /// Represents the element not selectable error.
42- /// </summary>
43- public const string ElementNotSelectable = "element not selectable" ;
44-
4535 /// <summary>
4636 /// Represents the element not interactable error.
4737 /// </summary>
4838 public const string ElementNotInteractable = "element not interactable" ;
4939
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-
5640 /// <summary>
5741 /// Represents the insecure certificate error.
5842 /// </summary>
@@ -68,17 +52,6 @@ internal static class WebDriverError
6852 /// </summary>
6953 public const string InvalidCookieDomain = "invalid cookie domain" ;
7054
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-
8255 /// <summary>
8356 /// Represents the invalid element state error.
8457 /// </summary>
@@ -149,6 +122,11 @@ internal static class WebDriverError
149122 /// </summary>
150123 public const string StaleElementReference = "stale element reference" ;
151124
125+ /// <summary>
126+ /// Represents the detached shadow root error.
127+ /// </summary>
128+ public const string DetachedShadowRoot = "detached shadow root" ;
129+
152130 /// <summary>
153131 /// Represents the timeout error.
154132 /// </summary>
@@ -194,16 +172,11 @@ internal static class WebDriverError
194172 static WebDriverError ( )
195173 {
196174 resultMap = new Dictionary < string , WebDriverResult > ( ) ;
197- resultMap [ DetachedShadowRoot ] = WebDriverResult . DetachedShadowRoot ;
198175 resultMap [ ElementClickIntercepted ] = WebDriverResult . ElementClickIntercepted ;
199- resultMap [ ElementNotSelectable ] = WebDriverResult . ElementNotSelectable ;
200- resultMap [ ElementNotVisible ] = WebDriverResult . ElementNotDisplayed ;
201176 resultMap [ ElementNotInteractable ] = WebDriverResult . ElementNotInteractable ;
202177 resultMap [ InsecureCertificate ] = WebDriverResult . InsecureCertificate ;
203178 resultMap [ InvalidArgument ] = WebDriverResult . InvalidArgument ;
204179 resultMap [ InvalidCookieDomain ] = WebDriverResult . InvalidCookieDomain ;
205- resultMap [ InvalidCoordinates ] = WebDriverResult . InvalidElementCoordinates ;
206- resultMap [ InvalidElementCoordinates ] = WebDriverResult . InvalidElementCoordinates ;
207180 resultMap [ InvalidElementState ] = WebDriverResult . InvalidElementState ;
208181 resultMap [ InvalidSelector ] = WebDriverResult . InvalidSelector ;
209182 resultMap [ InvalidSessionId ] = WebDriverResult . NoSuchDriver ;
@@ -218,14 +191,15 @@ static WebDriverError()
218191 resultMap [ ScriptTimeout ] = WebDriverResult . AsyncScriptTimeout ;
219192 resultMap [ SessionNotCreated ] = WebDriverResult . SessionNotCreated ;
220193 resultMap [ StaleElementReference ] = WebDriverResult . ObsoleteElement ;
194+ resultMap [ DetachedShadowRoot ] = WebDriverResult . DetachedShadowRoot ;
221195 resultMap [ Timeout ] = WebDriverResult . Timeout ;
222196 resultMap [ UnableToSetCookie ] = WebDriverResult . UnableToSetCookie ;
223197 resultMap [ UnableToCaptureScreen ] = WebDriverResult . UnableToCaptureScreen ;
224198 resultMap [ UnexpectedAlertOpen ] = WebDriverResult . UnexpectedAlertOpen ;
225199 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 ;
229203 }
230204
231205 /// <summary>
0 commit comments