diff --git a/playwright/src/main/java/com/microsoft/playwright/BrowserType.java b/playwright/src/main/java/com/microsoft/playwright/BrowserType.java index cd8b82ad..de852d70 100644 --- a/playwright/src/main/java/com/microsoft/playwright/BrowserType.java +++ b/playwright/src/main/java/com/microsoft/playwright/BrowserType.java @@ -144,7 +144,8 @@ public interface BrowserType { public Boolean devtools; /** * If specified, accepted downloads are downloaded into this directory. Otherwise, temporary directory is created and is - * deleted when browser is closed. + * deleted when browser is closed. In either case, the downloads are deleted when the browser context they were created in + * is closed. */ public Path downloadsPath; /** @@ -253,7 +254,8 @@ public interface BrowserType { } /** * If specified, accepted downloads are downloaded into this directory. Otherwise, temporary directory is created and is - * deleted when browser is closed. + * deleted when browser is closed. In either case, the downloads are deleted when the browser context they were created in + * is closed. */ public LaunchOptions setDownloadsPath(Path downloadsPath) { this.downloadsPath = downloadsPath; @@ -418,7 +420,8 @@ public interface BrowserType { public Boolean devtools; /** * If specified, accepted downloads are downloaded into this directory. Otherwise, temporary directory is created and is - * deleted when browser is closed. + * deleted when browser is closed. In either case, the downloads are deleted when the browser context they were created in + * is closed. */ public Path downloadsPath; /** @@ -657,7 +660,8 @@ public interface BrowserType { } /** * If specified, accepted downloads are downloaded into this directory. Otherwise, temporary directory is created and is - * deleted when browser is closed. + * deleted when browser is closed. In either case, the downloads are deleted when the browser context they were created in + * is closed. */ public LaunchPersistentContextOptions setDownloadsPath(Path downloadsPath) { this.downloadsPath = downloadsPath; diff --git a/playwright/src/main/java/com/microsoft/playwright/Frame.java b/playwright/src/main/java/com/microsoft/playwright/Frame.java index a7b78243..8b78e874 100644 --- a/playwright/src/main/java/com/microsoft/playwright/Frame.java +++ b/playwright/src/main/java/com/microsoft/playwright/Frame.java @@ -2569,7 +2569,7 @@ public interface Frame { * Returns the main resource response. In case of multiple redirects, the navigation will resolve with the response of the * last redirect. * - *
{@code frame.goto} will throw an error if: + *
The method will throw an error if: *
{@code frame.goto} will not throw an error when any valid HTTP status code is returned by the remote server, including 404 - * "Not Found" and 500 "Internal Server Error". The status code for such responses can be retrieved by calling {@link + *
The method will not throw an error when any valid HTTP status code is returned by the remote server, including 404 "Not + * Found" and 500 "Internal Server Error". The status code for such responses can be retrieved by calling {@link * Response#status Response.status()}. * - *
NOTE: {@code frame.goto} either throws an error or returns a main resource response. The only exceptions are navigation to + *
NOTE: The method either throws an error or returns a main resource response. The only exceptions are navigation to * {@code about:blank} or navigation to the same URL with a different hash, which would succeed and return {@code null}. * *
NOTE: Headless mode doesn't support navigation to a PDF document. See the {@code frame.goto} will throw an error if:
+ * The method will throw an error if:
* {@code frame.goto} will not throw an error when any valid HTTP status code is returned by the remote server, including 404
- * "Not Found" and 500 "Internal Server Error". The status code for such responses can be retrieved by calling {@link
+ * The method will not throw an error when any valid HTTP status code is returned by the remote server, including 404 "Not
+ * Found" and 500 "Internal Server Error". The status code for such responses can be retrieved by calling {@link
* Response#status Response.status()}.
*
- * NOTE: {@code frame.goto} either throws an error or returns a main resource response. The only exceptions are navigation to
+ * NOTE: The method either throws an error or returns a main resource response. The only exceptions are navigation to
* {@code about:blank} or navigation to the same URL with a different hash, which would succeed and return {@code null}.
*
* NOTE: Headless mode doesn't support navigation to a PDF document. See the {@code page.goto} will throw an error if:
+ * The method will throw an error if:
* {@code page.goto} will not throw an error when any valid HTTP status code is returned by the remote server, including 404 "Not
+ * The method will not throw an error when any valid HTTP status code is returned by the remote server, including 404 "Not
* Found" and 500 "Internal Server Error". The status code for such responses can be retrieved by calling {@link
* Response#status Response.status()}.
*
- * NOTE: {@code page.goto} either throws an error or returns a main resource response. The only exceptions are navigation to
+ * NOTE: The method either throws an error or returns a main resource response. The only exceptions are navigation to
* {@code about:blank} or navigation to the same URL with a different hash, which would succeed and return {@code null}.
*
*
*
*
- *
*
*
- *