Properly detect the sesionId in Grid with the W3C protocol.
@@ -109,7 +109,7 @@ public static ExternalSessionKey fromJsonResponseBody(String responseBody) {
if (json.has("value") && json.get("value").isJsonObject()) {
JsonObject value = json.getAsJsonObject("value");
if (value.has("sessionId") && !value.get("sessionId").isJsonNull()) {
- return new ExternalSessionKey(json.get("sessionId").getAsString());
+ return new ExternalSessionKey(value.get("sessionId").getAsString());
}
}
} catch (JsonSyntaxException e) {
