diff --git a/java/client/src/org/openqa/selenium/remote/ErrorCodes.java b/java/client/src/org/openqa/selenium/remote/ErrorCodes.java index 1771e55796439..1c5f5bc2c2a94 100644 --- a/java/client/src/org/openqa/selenium/remote/ErrorCodes.java +++ b/java/client/src/org/openqa/selenium/remote/ErrorCodes.java @@ -125,6 +125,7 @@ public class ErrorCodes { builder.put(pair.getValue(), pair.getKey()); } } + builder.put("invalid session id", NO_SUCH_SESSION); // for W3C compatibility stateToStatus = builder.build(); }