@@ -93,6 +93,11 @@ public class ErrorCodes {
93
93
public static final int MOVE_TARGET_OUT_OF_BOUNDS = 34 ;
94
94
public static final int INVALID_XPATH_SELECTOR = 51 ;
95
95
public static final int INVALID_XPATH_SELECTOR_RETURN_TYPER = 52 ;
96
+
97
+ // json wire protocol doesn't have analogous status codes for
98
+ // these new W3C status repsonse 'codes', so making some up!
99
+ public static final int ELEMENT_NOT_INTERACTABLE = 60 ;
100
+
96
101
// The following error codes are derived straight from HTTP return codes.
97
102
public static final int METHOD_NOT_ALLOWED = 405 ;
98
103
@@ -108,8 +113,7 @@ public class ErrorCodes {
108
113
.put (400 ,
109
114
ImmutableSortedSet .<StatusTuple >naturalOrder ()
110
115
.add (new StatusTuple ("element not selectable" , ELEMENT_NOT_SELECTABLE , ElementNotSelectableException .class ))
111
- .add (new StatusTuple ("element not interactable" , INVALID_ELEMENT_STATE , ElementNotInteractableException .class ))
112
- .add (new StatusTuple ("element not interactable" , ELEMENT_NOT_VISIBLE , ElementNotVisibleException .class ))
116
+ .add (new StatusTuple ("element not interactable" , ELEMENT_NOT_INTERACTABLE , ElementNotInteractableException .class ))
113
117
.add (new StatusTuple ("element not visible" , ELEMENT_NOT_VISIBLE , ElementNotVisibleException .class ))
114
118
.add (new StatusTuple ("invalid argument" , UNHANDLED_ERROR , InvalidArgumentException .class ))
115
119
.add (new StatusTuple ("invalid cookie domain" , INVALID_COOKIE_DOMAIN , InvalidCookieDomainException .class ))
0 commit comments