From f8fc1068bcf3121e95472fa8aca9e232c34bb3b3 Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Fri, 10 Mar 2023 10:05:19 -0800 Subject: [PATCH] chore: roll 1.32.0-alpha driver (#1223) --- README.md | 2 +- .../microsoft/playwright/BrowserContext.java | 30 +++++++++++ .../java/com/microsoft/playwright/Frame.java | 38 +------------- .../microsoft/playwright/FrameLocator.java | 32 ++++++++++-- .../com/microsoft/playwright/Locator.java | 36 ++++++++++--- .../java/com/microsoft/playwright/Page.java | 10 ++++ .../assertions/LocatorAssertions.java | 4 +- .../playwright/impl/CallMetadata.java | 8 +++ .../microsoft/playwright/impl/Connection.java | 34 ++++++++++-- .../playwright/impl/FrameLocatorImpl.java | 10 ++++ .../microsoft/playwright/impl/LocalUtils.java | 8 ++- .../playwright/impl/LocatorImpl.java | 13 ++++- .../playwright/impl/StackTraceCollector.java | 1 + .../playwright/impl/TracingImpl.java | 52 +++++++++++++------ .../playwright/TestBrowserContextHar.java | 19 +++++++ .../TestElementHandleSelectText.java | 4 +- .../microsoft/playwright/TestLocatorMisc.java | 14 +++++ scripts/CLI_VERSION | 2 +- 18 files changed, 240 insertions(+), 77 deletions(-) create mode 100644 playwright/src/main/java/com/microsoft/playwright/impl/CallMetadata.java diff --git a/README.md b/README.md index 8df5008d..b24022c4 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ Playwright is a Java library to automate [Chromium](https://www.chromium.org/Hom | | Linux | macOS | Windows | | :--- | :---: | :---: | :---: | -| Chromium 111.0.5563.19 | :white_check_mark: | :white_check_mark: | :white_check_mark: | +| Chromium 111.0.5563.64 | :white_check_mark: | :white_check_mark: | :white_check_mark: | | WebKit 16.4 | ✅ | ✅ | ✅ | | Firefox 109.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: | diff --git a/playwright/src/main/java/com/microsoft/playwright/BrowserContext.java b/playwright/src/main/java/com/microsoft/playwright/BrowserContext.java index 675b2236..2c544569 100644 --- a/playwright/src/main/java/com/microsoft/playwright/BrowserContext.java +++ b/playwright/src/main/java/com/microsoft/playwright/BrowserContext.java @@ -175,6 +175,18 @@ public interface BrowserContext extends AutoCloseable { } } class RouteFromHAROptions { + /** + * Optional setting to control resource content management. If {@code omit} is specified, content is not persisted. If + * {@code attach} is specified, resources are persisted as separate files or entries in the ZIP archive. If {@code embed} + * is specified, content is stored inline the HAR file + */ + public HarContentPolicy content; + /** + * When set to {@code minimal}, only record information necessary for routing from HAR. This omits sizes, timing, page, + * cookies, security and other types of HAR information that are not used when replaying from HAR. Defaults to {@code + * minimal}. + */ + public HarMode mode; /** *