2121import com .google .common .collect .Iterables ;
2222import org .openqa .selenium .ElementClickInterceptedException ;
2323import org .openqa .selenium .ElementNotInteractableException ;
24- import org .openqa .selenium .ElementNotSelectableException ;
25- import org .openqa .selenium .ElementNotVisibleException ;
2624import org .openqa .selenium .ImeActivationFailedException ;
2725import org .openqa .selenium .ImeNotAvailableException ;
2826import org .openqa .selenium .InvalidArgumentException ;
4543import org .openqa .selenium .UnhandledAlertException ;
4644import org .openqa .selenium .UnsupportedCommandException ;
4745import org .openqa .selenium .WebDriverException ;
48- import org .openqa .selenium .interactions .InvalidCoordinatesException ;
4946import org .openqa .selenium .interactions .MoveTargetOutOfBoundsException ;
5047
5148import java .util .Comparator ;
@@ -72,10 +69,8 @@ public class ErrorCodes {
7269 public static final int NO_SUCH_FRAME = 8 ;
7370 public static final int UNKNOWN_COMMAND = 9 ;
7471 public static final int STALE_ELEMENT_REFERENCE = 10 ;
75- public static final int ELEMENT_NOT_VISIBLE = 11 ;
7672 public static final int INVALID_ELEMENT_STATE = 12 ;
7773 public static final int UNHANDLED_ERROR = 13 ;
78- public static final int ELEMENT_NOT_SELECTABLE = 15 ;
7974 public static final int JAVASCRIPT_ERROR = 17 ;
8075 public static final int XPATH_LOOKUP_ERROR = 19 ;
8176 public static final int TIMEOUT = 21 ;
@@ -85,7 +80,6 @@ public class ErrorCodes {
8580 public static final int UNEXPECTED_ALERT_PRESENT = 26 ;
8681 public static final int NO_ALERT_PRESENT = 27 ;
8782 public static final int ASYNC_SCRIPT_TIMEOUT = 28 ;
88- public static final int INVALID_ELEMENT_COORDINATES = 29 ;
8983 public static final int IME_NOT_AVAILABLE = 30 ;
9084 public static final int IME_ENGINE_ACTIVATION_FAILED = 31 ;
9185 public static final int INVALID_SELECTOR_ERROR = 32 ;
@@ -226,14 +220,11 @@ public boolean isMappableError(Throwable rootCause) {
226220 private static final ImmutableSet <KnownError > KNOWN_ERRORS = ImmutableSet .<KnownError >builder ()
227221 .add (new KnownError (ASYNC_SCRIPT_TIMEOUT , "script timeout" , 500 , ScriptTimeoutException .class , true , true ))
228222 .add (new KnownError (ELEMENT_CLICK_INTERCEPTED , "element click intercepted" , 400 , ElementClickInterceptedException .class , true , true ))
229- .add (new KnownError (ELEMENT_NOT_SELECTABLE , "element not selectable" , 400 , ElementNotSelectableException .class , true , true ))
230223 .add (new KnownError (ELEMENT_NOT_INTERACTABLE , "element not interactable" , 400 , ElementNotInteractableException .class , true , true ))
231- .add (new KnownError (ELEMENT_NOT_VISIBLE , "element not visible" , 400 , ElementNotVisibleException .class , true , true ))
232224 .add (new KnownError (IME_ENGINE_ACTIVATION_FAILED , "unsupported operation" , 500 , ImeActivationFailedException .class , true , false ))
233225 .add (new KnownError (IME_NOT_AVAILABLE , "unsupported operation" , 500 , ImeNotAvailableException .class , true , false ))
234226 .add (new KnownError (INVALID_ARGUMENT , "invalid argument" , 400 , InvalidArgumentException .class , true , true ))
235227 .add (new KnownError (INVALID_COOKIE_DOMAIN , "invalid cookie domain" , 400 , InvalidCookieDomainException .class , true , true ))
236- .add (new KnownError (INVALID_ELEMENT_COORDINATES , "invalid element coordinates" , 400 , InvalidCoordinatesException .class , true , true ))
237228 .add (new KnownError (INVALID_ELEMENT_STATE , "invalid element state" , 400 , InvalidElementStateException .class , true , true ))
238229 .add (new KnownError (INVALID_SELECTOR_ERROR , "invalid selector" , 400 , InvalidSelectorException .class , true , true ))
239230 .add (new KnownError (INVALID_XPATH_SELECTOR , "invalid selector" , 400 , InvalidSelectorException .class , false , false ))
0 commit comments