From 5394b5d9b333d44b58df673785dc00900963fd1a Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Tue, 12 Sep 2023 09:10:13 -0700 Subject: [PATCH] chore: roll driver 1.38.0-alpha-sep-10-2023 (#1380) --- README.md | 4 ++-- .../microsoft/playwright/BrowserContext.java | 10 +++++----- .../microsoft/playwright/ElementHandle.java | 14 +++++++------ .../java/com/microsoft/playwright/Frame.java | 14 +++++++------ .../com/microsoft/playwright/Keyboard.java | 20 +++++++++++++++---- .../java/com/microsoft/playwright/Page.java | 14 +++++++------ .../{PageError.java => WebError.java} | 10 +++++----- .../playwright/impl/BrowserContextImpl.java | 12 +++++------ .../{PageErrorImpl.java => WebErrorImpl.java} | 6 +++--- .../playwright/TestBrowserContextEvents.java | 12 +++++------ scripts/CLI_VERSION | 2 +- 11 files changed, 68 insertions(+), 50 deletions(-) rename playwright/src/main/java/com/microsoft/playwright/{PageError.java => WebError.java} (75%) rename playwright/src/main/java/com/microsoft/playwright/impl/{PageErrorImpl.java => WebErrorImpl.java} (66%) diff --git a/README.md b/README.md index f5e76596..afb42a98 100644 --- a/README.md +++ b/README.md @@ -11,9 +11,9 @@ Playwright is a Java library to automate [Chromium](https://www.chromium.org/Hom | | Linux | macOS | Windows | | :--- | :---: | :---: | :---: | -| Chromium 117.0.5938.35 | :white_check_mark: | :white_check_mark: | :white_check_mark: | +| Chromium 117.0.5938.48 | :white_check_mark: | :white_check_mark: | :white_check_mark: | | WebKit 17.0 | ✅ | ✅ | ✅ | -| Firefox 115.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: | +| Firefox 117.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: | Headless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/java/docs/next/intro/#system-requirements) for details. diff --git a/playwright/src/main/java/com/microsoft/playwright/BrowserContext.java b/playwright/src/main/java/com/microsoft/playwright/BrowserContext.java index 6eb2f8da..a6360042 100644 --- a/playwright/src/main/java/com/microsoft/playwright/BrowserContext.java +++ b/playwright/src/main/java/com/microsoft/playwright/BrowserContext.java @@ -128,14 +128,14 @@ public interface BrowserContext extends AutoCloseable { void offPage(Consumer handler); /** - * Emitted when unhandled exceptions occur on any pages created through this context. To only listen for {@code pageError} - * events from a particular page, use {@link Page#onPageError Page.onPageError()}. + * Emitted when exception is unhandled in any of the pages in this context. To listen for errors from a particular page, + * use {@link Page#onPageError Page.onPageError()} instead. */ - void onPageError(Consumer handler); + void onWebError(Consumer handler); /** - * Removes handler that was previously added with {@link #onPageError onPageError(handler)}. + * Removes handler that was previously added with {@link #onWebError onWebError(handler)}. */ - void offPageError(Consumer handler); + void offWebError(Consumer handler); /** * Emitted when a request is issued from any pages created through this context. The [request] object is read-only. To only diff --git a/playwright/src/main/java/com/microsoft/playwright/ElementHandle.java b/playwright/src/main/java/com/microsoft/playwright/ElementHandle.java index eb6828b7..f046e8f4 100644 --- a/playwright/src/main/java/com/microsoft/playwright/ElementHandle.java +++ b/playwright/src/main/java/com/microsoft/playwright/ElementHandle.java @@ -1582,7 +1582,7 @@ public interface ElementHandle extends JSHandle { * href="https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control">control, the control will be filled * instead. * - *

To send fine-grained keyboard events, use {@link Keyboard#type Keyboard.type()}. + *

To send fine-grained keyboard events, use {@link Locator#pressSequentially Locator.pressSequentially()}. * * @param value Value to set for the {@code }, {@code