From 5af091880f872e76d79fca34dadf89c1f19c7cc3 Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Mon, 1 Feb 2021 13:34:23 -0800 Subject: [PATCH] chore: remove more upstreamed stuff (#244) --- .../com/microsoft/playwright/tools/ApiGenerator.java | 12 ------------ 1 file changed, 12 deletions(-) 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); }",