diff --git a/examples/pom.xml b/examples/pom.xml index 8029f389f..13f953919 100644 --- a/examples/pom.xml +++ b/examples/pom.xml @@ -10,7 +10,7 @@ Playwright Client Examples UTF-8 - 1.58.0 + 1.59.0 diff --git a/scripts/DRIVER_VERSION b/scripts/DRIVER_VERSION index 038e96b81..c81473397 100644 --- a/scripts/DRIVER_VERSION +++ b/scripts/DRIVER_VERSION @@ -1 +1 @@ -1.59.1-beta-1775752988000 +1.59.1-beta-1775762078000 diff --git a/tools/api-generator/src/main/java/com/microsoft/playwright/tools/ApiGenerator.java b/tools/api-generator/src/main/java/com/microsoft/playwright/tools/ApiGenerator.java index 14a860afe..ba4b59f61 100644 --- a/tools/api-generator/src/main/java/com/microsoft/playwright/tools/ApiGenerator.java +++ b/tools/api-generator/src/main/java/com/microsoft/playwright/tools/ApiGenerator.java @@ -506,6 +506,12 @@ private String convertBuiltinType(JsonObject jsonType) { if (customType != null) { return customType; } + // Inner Objects (e.g. function arguments) are not visited by createClassesAndEnums, + // so resolve their Java type name from langAliases here. + String alias = javaAlias(jsonType); + if (alias != null) { + return alias; + } return "Map<" + convertTemplateParams(jsonType) + ">"; } if ("Map".equals(name)) { @@ -525,9 +531,6 @@ private String convertBuiltinType(JsonObject jsonType) { if ("WebSocketRoute.onClose.handler".equals(jsonPath)) { return "BiConsumer"; } - if ("Screencast.start.options.onFrame".equals(jsonPath)) { - return "Consumer"; - } if (jsonType.getAsJsonArray("args").size() == 1) { String paramType = convertBuiltinType(jsonType.getAsJsonArray("args").get(0).getAsJsonObject()); if (!jsonType.has("returnType") || jsonType.get("returnType").isJsonNull()) {