Skip to content

Commit e6b9d65

Browse files
committed
Send string for text instead of array for W3C remote ends in Java sendKeys
1 parent f948e6d commit e6b9d65

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

java/client/src/org/openqa/selenium/remote/http/W3CHttpCommandCodec.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -247,10 +247,9 @@ public W3CHttpCommandCodec() {
247247
.collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue)))
248248
.put(
249249
"text",
250-
stringToUtf8Array(
251-
Stream.of((CharSequence[]) parameters.get("value"))
252-
.flatMap(Stream::of)
253-
.collect(Collectors.joining())))
250+
Stream.of((CharSequence[]) parameters.get("value"))
251+
.flatMap(Stream::of)
252+
.collect(Collectors.joining()))
254253
.put(
255254
"value",
256255
stringToUtf8Array(

0 commit comments

Comments
 (0)