diff --git a/README.md b/README.md index e3e411c3b..08f5626c4 100644 --- a/README.md +++ b/README.md @@ -10,9 +10,9 @@ Playwright is a Java library to automate [Chromium](https://www.chromium.org/Hom | | Linux | macOS | Windows | | :--- | :---: | :---: | :---: | -| Chromium 149.0.7827.55 | :white_check_mark: | :white_check_mark: | :white_check_mark: | +| Chromium 151.0.7922.34 | :white_check_mark: | :white_check_mark: | :white_check_mark: | | WebKit 26.5 | ✅ | ✅ | ✅ | -| Firefox 151.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: | +| Firefox 152.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: | ## Documentation diff --git a/examples/pom.xml b/examples/pom.xml index 3c2db93f1..012777b53 100644 --- a/examples/pom.xml +++ b/examples/pom.xml @@ -10,7 +10,7 @@ Playwright Client Examples UTF-8 - 1.61.0 + 1.62.0 diff --git a/playwright/src/main/java/com/microsoft/playwright/APIResponse.java b/playwright/src/main/java/com/microsoft/playwright/APIResponse.java index 13bd81064..c52f1d31e 100644 --- a/playwright/src/main/java/com/microsoft/playwright/APIResponse.java +++ b/playwright/src/main/java/com/microsoft/playwright/APIResponse.java @@ -87,6 +87,16 @@ public interface APIResponse { * @since v1.16 */ String text(); + /** + * Returns resource timing information for given response. For redirected requests, returns the information for the last + * request in the redirect chain. When the response is served from the HAR file, timing information is not + * available and all the values are -1. Find more information at Resource Timing API. + * + * @since v1.62 + */ + Timing timing(); /** * Contains the URL of the response. * diff --git a/playwright/src/main/java/com/microsoft/playwright/BrowserContext.java b/playwright/src/main/java/com/microsoft/playwright/BrowserContext.java index b254cf5c2..49ace5531 100644 --- a/playwright/src/main/java/com/microsoft/playwright/BrowserContext.java +++ b/playwright/src/main/java/com/microsoft/playwright/BrowserContext.java @@ -363,6 +363,13 @@ public RouteOptions setTimes(int times) { } } class RouteFromHAROptions { + /** + * If set to {@code true}, requests made via {@code APIRequestContext} (such as {@link + * com.microsoft.playwright.BrowserContext#request BrowserContext.request()} or {@link + * com.microsoft.playwright.Page#request Page.request()}) are also served from the HAR file. By default these requests are + * sent to the network, matching the behavior prior to v1.62. Defaults to {@code false} for backward compatibility. + */ + public Boolean interceptAPIRequests; /** *