@@ -439,32 +439,32 @@ public void testShouldStillIncludeScreenshotEvenIfServerSideExceptionsAreDisable
439
439
@ Test
440
440
public void testStatusCodesRaisedBackToStatusMatches () {
441
441
List <Pair <Integer , Class >> exceptions = Arrays .asList (
442
- new Pair (ErrorCodes .NO_SUCH_SESSION , NoSuchSessionException .class ),
443
- new Pair (ErrorCodes .NO_SUCH_ELEMENT , NoSuchElementException .class ),
444
- new Pair (ErrorCodes .NO_SUCH_FRAME , NoSuchFrameException .class ),
445
- new Pair (ErrorCodes .UNKNOWN_COMMAND , UnsupportedCommandException .class ),
446
- new Pair (ErrorCodes .STALE_ELEMENT_REFERENCE , StaleElementReferenceException .class ),
447
- new Pair (ErrorCodes .ELEMENT_NOT_VISIBLE , ElementNotVisibleException .class ),
448
- new Pair (ErrorCodes .INVALID_ELEMENT_STATE , InvalidElementStateException .class ),
449
- new Pair (ErrorCodes .UNHANDLED_ERROR , WebDriverException .class ),
450
- new Pair (ErrorCodes .ELEMENT_NOT_SELECTABLE , ElementNotSelectableException .class ),
451
- new Pair (ErrorCodes .JAVASCRIPT_ERROR , WebDriverException .class ),
452
- new Pair (ErrorCodes .XPATH_LOOKUP_ERROR , InvalidSelectorException .class ),
453
- new Pair (ErrorCodes .TIMEOUT , TimeoutException .class ),
454
- new Pair (ErrorCodes .NO_SUCH_WINDOW , NoSuchWindowException .class ),
455
- new Pair (ErrorCodes .INVALID_COOKIE_DOMAIN , InvalidCookieDomainException .class ),
456
- new Pair (ErrorCodes .UNABLE_TO_SET_COOKIE , UnableToSetCookieException .class ),
457
- new Pair (ErrorCodes .UNEXPECTED_ALERT_PRESENT , UnhandledAlertException .class ),
458
- new Pair (ErrorCodes .NO_ALERT_PRESENT , NoAlertPresentException .class ),
459
- new Pair (ErrorCodes .ASYNC_SCRIPT_TIMEOUT , ScriptTimeoutException .class ),
460
- new Pair (ErrorCodes .INVALID_ELEMENT_COORDINATES , InvalidCoordinatesException .class ),
461
- new Pair (ErrorCodes .IME_NOT_AVAILABLE , ImeNotAvailableException .class ),
462
- new Pair (ErrorCodes .IME_ENGINE_ACTIVATION_FAILED , ImeActivationFailedException .class ),
463
- new Pair (ErrorCodes .INVALID_SELECTOR_ERROR , InvalidSelectorException .class ),
464
- new Pair (ErrorCodes .SESSION_NOT_CREATED , SessionNotCreatedException .class ),
465
- new Pair (ErrorCodes .MOVE_TARGET_OUT_OF_BOUNDS , MoveTargetOutOfBoundsException .class ),
466
- new Pair (ErrorCodes .INVALID_XPATH_SELECTOR , InvalidSelectorException .class ),
467
- new Pair (ErrorCodes .INVALID_XPATH_SELECTOR_RETURN_TYPER , InvalidSelectorException .class )
442
+ new Pair < Integer , Class > (ErrorCodes .NO_SUCH_SESSION , NoSuchSessionException .class ),
443
+ new Pair < Integer , Class > (ErrorCodes .NO_SUCH_ELEMENT , NoSuchElementException .class ),
444
+ new Pair < Integer , Class > (ErrorCodes .NO_SUCH_FRAME , NoSuchFrameException .class ),
445
+ new Pair < Integer , Class > (ErrorCodes .UNKNOWN_COMMAND , UnsupportedCommandException .class ),
446
+ new Pair < Integer , Class > (ErrorCodes .STALE_ELEMENT_REFERENCE , StaleElementReferenceException .class ),
447
+ new Pair < Integer , Class > (ErrorCodes .ELEMENT_NOT_VISIBLE , ElementNotVisibleException .class ),
448
+ new Pair < Integer , Class > (ErrorCodes .INVALID_ELEMENT_STATE , InvalidElementStateException .class ),
449
+ new Pair < Integer , Class > (ErrorCodes .UNHANDLED_ERROR , WebDriverException .class ),
450
+ new Pair < Integer , Class > (ErrorCodes .ELEMENT_NOT_SELECTABLE , ElementNotSelectableException .class ),
451
+ new Pair < Integer , Class > (ErrorCodes .JAVASCRIPT_ERROR , WebDriverException .class ),
452
+ new Pair < Integer , Class > (ErrorCodes .XPATH_LOOKUP_ERROR , InvalidSelectorException .class ),
453
+ new Pair < Integer , Class > (ErrorCodes .TIMEOUT , TimeoutException .class ),
454
+ new Pair < Integer , Class > (ErrorCodes .NO_SUCH_WINDOW , NoSuchWindowException .class ),
455
+ new Pair < Integer , Class > (ErrorCodes .INVALID_COOKIE_DOMAIN , InvalidCookieDomainException .class ),
456
+ new Pair < Integer , Class > (ErrorCodes .UNABLE_TO_SET_COOKIE , UnableToSetCookieException .class ),
457
+ new Pair < Integer , Class > (ErrorCodes .UNEXPECTED_ALERT_PRESENT , UnhandledAlertException .class ),
458
+ new Pair < Integer , Class > (ErrorCodes .NO_ALERT_PRESENT , NoAlertPresentException .class ),
459
+ new Pair < Integer , Class > (ErrorCodes .ASYNC_SCRIPT_TIMEOUT , ScriptTimeoutException .class ),
460
+ new Pair < Integer , Class > (ErrorCodes .INVALID_ELEMENT_COORDINATES , InvalidCoordinatesException .class ),
461
+ new Pair < Integer , Class > (ErrorCodes .IME_NOT_AVAILABLE , ImeNotAvailableException .class ),
462
+ new Pair < Integer , Class > (ErrorCodes .IME_ENGINE_ACTIVATION_FAILED , ImeActivationFailedException .class ),
463
+ new Pair < Integer , Class > (ErrorCodes .INVALID_SELECTOR_ERROR , InvalidSelectorException .class ),
464
+ new Pair < Integer , Class > (ErrorCodes .SESSION_NOT_CREATED , SessionNotCreatedException .class ),
465
+ new Pair < Integer , Class > (ErrorCodes .MOVE_TARGET_OUT_OF_BOUNDS , MoveTargetOutOfBoundsException .class ),
466
+ new Pair < Integer , Class > (ErrorCodes .INVALID_XPATH_SELECTOR , InvalidSelectorException .class ),
467
+ new Pair < Integer , Class > (ErrorCodes .INVALID_XPATH_SELECTOR_RETURN_TYPER , InvalidSelectorException .class )
468
468
);
469
469
470
470
for (Pair <Integer , Class > exception : exceptions ) {
0 commit comments