We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4edf929 commit 5948df9Copy full SHA for 5948df9
java/client/src/org/openqa/selenium/remote/ErrorCodes.java
@@ -253,6 +253,7 @@ public static String toState(Integer status) {
253
}
254
255
public static int toStatus(String state) {
256
- return stateToStatus.get(state);
+ Integer status = stateToStatus.get(state);
257
+ return status != null ? status : UNHANDLED_ERROR;
258
259
0 commit comments