From fb7a858d5ec3db7326916a7b771d231864ef8387 Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Tue, 20 Oct 2026 13:19:42 -0700 Subject: [PATCH 1/2] chore(driver): roll to 1.64.1 --- scripts/DRIVER_VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/DRIVER_VERSION b/scripts/DRIVER_VERSION index e4219206d..0936d60d4 100644 --- a/scripts/DRIVER_VERSION +++ b/scripts/DRIVER_VERSION @@ -1 +1 @@ -1.64.0-beta-1791568591000 +1.64.1 From a7d3b121b2a77cddc244ba5bdb87a2488a933c3f Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Tue, 20 Oct 2026 13:23:20 -0700 Subject: [PATCH 2/2] test: wait for frames before stopping Chromium tracing with screenshots Ports the rafraf(page, 100) wait from microsoft/playwright#38508. --- .../java/com/microsoft/playwright/TestChromiumTracing.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/playwright/src/test/java/com/microsoft/playwright/TestChromiumTracing.java b/playwright/src/test/java/com/microsoft/playwright/TestChromiumTracing.java index 10c88b7d8..ef89f3f61 100644 --- a/playwright/src/test/java/com/microsoft/playwright/TestChromiumTracing.java +++ b/playwright/src/test/java/com/microsoft/playwright/TestChromiumTracing.java @@ -57,8 +57,7 @@ void shouldCreateDirectoriesAsNeeded(@TempDir Path tempDir) { } } - private static void rafraf(Page page) { - int count = 2; + private static void rafraf(Page page, int count) { for (int i = 0; i < count; i++) { page.evaluate("() => new Promise(f => requestAnimationFrame(() => requestAnimationFrame(f)))"); } @@ -71,7 +70,7 @@ void shouldRunWithCustomCategoriesIfProvided(@TempDir Path tempDir) throws IOExc browser.startTracing(page, new Browser.StartTracingOptions() .setPath(outputTraceFile) .setCategories(asList("disabled-by-default-cc.debug"))); - rafraf(page); + rafraf(page, 2); browser.stopTracing(); try (FileReader fileReader = new FileReader(outputTraceFile.toFile())) { JsonObject traceJson = new Gson().fromJson(fileReader, JsonObject.class); @@ -134,6 +133,7 @@ void shouldSupportABufferWithoutAPath() { try (Page page = browser.newPage()) { browser.startTracing(page, new Browser.StartTracingOptions().setScreenshots(true)); page.navigate(server.PREFIX + "/grid.html"); + rafraf(page, 100); byte[] trace = browser.stopTracing(); assertTrue(new String(trace, StandardCharsets.UTF_8).contains("screenshot")); }