We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27fe2d9 commit e0dde49Copy full SHA for e0dde49
java/client/src/org/openqa/selenium/devtools/CdpClientGenerator.java
@@ -769,6 +769,9 @@ public TypeDeclaration<?> toTypeDeclaration() {
769
if (type.equals("object")) {
770
toJson.setType("java.util.Map<String, Object>");
771
toJson.getBody().get().addStatement(String.format("return %s;", propertyName));
772
+ } else if (type.equals("integer")) {
773
+ toJson.setType(Integer.class);
774
+ toJson.getBody().get().addStatement(String.format("return %s;", propertyName));
775
} else {
776
toJson.setType(String.class);
777
toJson.getBody().get().addStatement(String.format("return %s.toString();", propertyName));
0 commit comments