Skip to content

Commit 21e5734

Browse files
committed
JsonOutput knows how to handle Capabilities
1 parent 65b2536 commit 21e5734

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

java/client/src/org/openqa/selenium/remote/RemoteTags.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ private RemoteTags() {
5757
private static String convertCapsToJsonString(Capabilities capabilities) {
5858
StringBuilder text = new StringBuilder();
5959
try (JsonOutput json = JSON.newOutput(text).setPrettyPrint(false)) {
60-
json.write(capabilities.asMap());
60+
json.write(capabilities);
6161
text.append('\n');
6262
}
6363
return text.toString();

0 commit comments

Comments
 (0)