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 7dfebf53..21216af0 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 @@ -489,13 +489,6 @@ class Method extends Element { private static Map customSignature = new HashMap<>(); static { customSignature.put("Page.setViewportSize", new String[]{"void setViewportSize(int width, int height);"}); - // The method is deprecated in ts, just remove it in Java. - customSignature.put("BrowserContext.setHTTPCredentials", new String[0]); - // No connect for now. - customSignature.put("BrowserType.connect", new String[0]); - customSignature.put("BrowserType.launchServer", new String[0]); - // We don't expose Chromium-specific APIs at the moment. - customSignature.put("Page.coverage", new String[0]); customSignature.put("BrowserContext.route", new String[]{ "void route(String url, Consumer handler);", "void route(Pattern url, Consumer handler);", @@ -572,11 +565,6 @@ class Method extends Element { customSignature.put("Page.setInputFiles", setInputFilesWithSelector); customSignature.put("Frame.setInputFiles", setInputFilesWithSelector); - // We only have typed onPage/onDownload/... event listeners in Java. - customSignature.put("Page.waitForEvent", new String[] {}); - customSignature.put("BrowserContext.waitForEvent", new String[] {}); - customSignature.put("WebSocket.waitForEvent", new String[] {}); - customSignature.put("Page.waitForRequest", new String[] { "default Request waitForRequest(Runnable code) { return waitForRequest(code, (Predicate) null, null); }", "default Request waitForRequest(Runnable code, String urlGlob) { return waitForRequest(code, urlGlob, null); }",