Skip to content

Commit 6e1850b

Browse files
velmashs96c
authored andcommitted
make ConnectionType searilize as integer (#6176)
https://github.com/SeleniumHQ/mobile-spec/blob/master/spec-draft.md#device-modes expects connection type to be serialized to an integer as well as chromedriver does not accept currently sent string value.
1 parent 3f3f34e commit 6e1850b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

java/client/src/org/openqa/selenium/mobile/NetworkConnection.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ public String toString() {
109109
return Integer.toString(mask);
110110
}
111111

112-
public String toJson() {
113-
return toString();
112+
public Integer toJson() {
113+
return mask;
114114
}
115115
}
116116

0 commit comments

Comments
 (0)