Skip to content

Commit 8a6536d

Browse files
committed
Reverting change to execption type based on response error code
1 parent aefe62e commit 8a6536d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dotnet/src/webdriver/Remote/RemoteWebDriver.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1381,11 +1381,11 @@ private static void UnpackAndThrowOnError(Response errorResponse)
13811381
throw new StaleElementReferenceException(errorMessage);
13821382

13831383
case WebDriverResult.ElementNotDisplayed:
1384+
case WebDriverResult.ElementNotInteractable:
13841385
throw new ElementNotVisibleException(errorMessage);
13851386

13861387
case WebDriverResult.InvalidElementState:
13871388
case WebDriverResult.ElementNotSelectable:
1388-
case WebDriverResult.ElementNotInteractable:
13891389
throw new InvalidElementStateException(errorMessage);
13901390

13911391
case WebDriverResult.UnhandledError:

0 commit comments

Comments
 (0)