Update `send keys` methods to send `text` for w3c protocol
Addresses for the java bindings. This also
specutively fixes
@@ -245,6 +245,12 @@ public W3CHttpCommandCodec() {
parameters.entrySet().stream()
.filter(e -> !"value".equals(e.getKey()))
.collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue)))
+ .put(
+ "text",
+ stringToUtf8Array(
+ Stream.of((CharSequence[]) parameters.get("value"))
+ .flatMap(Stream::of)
+ .collect(Collectors.joining())))
.put(
"value",
stringToUtf8Array(
@@ -255,6 +261,7 @@ public W3CHttpCommandCodec() {
case SET_ALERT_VALUE:
return ImmutableMap.<String, Object>builder()
+ .put("text", stringToUtf8Array((String) parameters.get("text")))
.put("value", stringToUtf8Array((String) parameters.get("text")))
.build();
