From 61f5e4dfdd0534349fdabd9a9fba4e8318ca3602 Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Mon, 27 Sep 2021 13:21:10 -0700 Subject: [PATCH] chore: roll driver to 1.16.0-next-1632766475000 (#629) --- README.md | 2 +- .../com/microsoft/playwright/Browser.java | 16 ++++---- .../com/microsoft/playwright/BrowserType.java | 8 ++-- .../java/com/microsoft/playwright/Frame.java | 40 ++++++++++++++----- .../java/com/microsoft/playwright/Page.java | 40 ++++++++++++++----- .../TestElementHandleConvenience.java | 8 ++-- .../playwright/TestLocatorConvenience.java | 8 ++-- .../playwright/TestPageSelectOption.java | 2 +- scripts/CLI_VERSION | 2 +- 9 files changed, 83 insertions(+), 43 deletions(-) diff --git a/README.md b/README.md index 1e335f58..37bd3188 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 96.0.4641.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: | +| Chromium 96.0.4655.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: | | WebKit 15.0 | ✅ | ✅ | ✅ | | Firefox 92.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: | diff --git a/playwright/src/main/java/com/microsoft/playwright/Browser.java b/playwright/src/main/java/com/microsoft/playwright/Browser.java index 1a5f44ab..ae1c08ce 100644 --- a/playwright/src/main/java/com/microsoft/playwright/Browser.java +++ b/playwright/src/main/java/com/microsoft/playwright/Browser.java @@ -86,7 +86,7 @@ public interface Browser extends AutoCloseable { */ public Double deviceScaleFactor; /** - * An object containing additional HTTP headers to be sent with every request. All header values must be strings. + * An object containing additional HTTP headers to be sent with every request. */ public Map extraHTTPHeaders; /** @@ -107,7 +107,7 @@ public interface Browser extends AutoCloseable { */ public HttpCredentials httpCredentials; /** - * Whether to ignore HTTPS errors during navigation. Defaults to {@code false}. + * Whether to ignore HTTPS errors when sending network requests. Defaults to {@code false}. */ public Boolean ignoreHTTPSErrors; /** @@ -249,7 +249,7 @@ public interface Browser extends AutoCloseable { return this; } /** - * An object containing additional HTTP headers to be sent with every request. All header values must be strings. + * An object containing additional HTTP headers to be sent with every request. */ public NewContextOptions setExtraHTTPHeaders(Map extraHTTPHeaders) { this.extraHTTPHeaders = extraHTTPHeaders; @@ -294,7 +294,7 @@ public interface Browser extends AutoCloseable { return this; } /** - * Whether to ignore HTTPS errors during navigation. Defaults to {@code false}. + * Whether to ignore HTTPS errors when sending network requests. Defaults to {@code false}. */ public NewContextOptions setIgnoreHTTPSErrors(boolean ignoreHTTPSErrors) { this.ignoreHTTPSErrors = ignoreHTTPSErrors; @@ -510,7 +510,7 @@ public interface Browser extends AutoCloseable { */ public Double deviceScaleFactor; /** - * An object containing additional HTTP headers to be sent with every request. All header values must be strings. + * An object containing additional HTTP headers to be sent with every request. */ public Map extraHTTPHeaders; /** @@ -531,7 +531,7 @@ public interface Browser extends AutoCloseable { */ public HttpCredentials httpCredentials; /** - * Whether to ignore HTTPS errors during navigation. Defaults to {@code false}. + * Whether to ignore HTTPS errors when sending network requests. Defaults to {@code false}. */ public Boolean ignoreHTTPSErrors; /** @@ -673,7 +673,7 @@ public interface Browser extends AutoCloseable { return this; } /** - * An object containing additional HTTP headers to be sent with every request. All header values must be strings. + * An object containing additional HTTP headers to be sent with every request. */ public NewPageOptions setExtraHTTPHeaders(Map extraHTTPHeaders) { this.extraHTTPHeaders = extraHTTPHeaders; @@ -718,7 +718,7 @@ public interface Browser extends AutoCloseable { return this; } /** - * Whether to ignore HTTPS errors during navigation. Defaults to {@code false}. + * Whether to ignore HTTPS errors when sending network requests. Defaults to {@code false}. */ public NewPageOptions setIgnoreHTTPSErrors(boolean ignoreHTTPSErrors) { this.ignoreHTTPSErrors = ignoreHTTPSErrors; diff --git a/playwright/src/main/java/com/microsoft/playwright/BrowserType.java b/playwright/src/main/java/com/microsoft/playwright/BrowserType.java index 83fb62f5..65c5d73e 100644 --- a/playwright/src/main/java/com/microsoft/playwright/BrowserType.java +++ b/playwright/src/main/java/com/microsoft/playwright/BrowserType.java @@ -435,7 +435,7 @@ public interface BrowserType { */ public Path executablePath; /** - * An object containing additional HTTP headers to be sent with every request. All header values must be strings. + * An object containing additional HTTP headers to be sent with every request. */ public Map extraHTTPHeaders; /** @@ -485,7 +485,7 @@ public interface BrowserType { */ public List ignoreDefaultArgs; /** - * Whether to ignore HTTPS errors during navigation. Defaults to {@code false}. + * Whether to ignore HTTPS errors when sending network requests. Defaults to {@code false}. */ public Boolean ignoreHTTPSErrors; /** @@ -692,7 +692,7 @@ public interface BrowserType { return this; } /** - * An object containing additional HTTP headers to be sent with every request. All header values must be strings. + * An object containing additional HTTP headers to be sent with every request. */ public LaunchPersistentContextOptions setExtraHTTPHeaders(Map extraHTTPHeaders) { this.extraHTTPHeaders = extraHTTPHeaders; @@ -784,7 +784,7 @@ public interface BrowserType { return this; } /** - * Whether to ignore HTTPS errors during navigation. Defaults to {@code false}. + * Whether to ignore HTTPS errors when sending network requests. Defaults to {@code false}. */ public LaunchPersistentContextOptions setIgnoreHTTPSErrors(boolean ignoreHTTPSErrors) { this.ignoreHTTPSErrors = ignoreHTTPSErrors; diff --git a/playwright/src/main/java/com/microsoft/playwright/Frame.java b/playwright/src/main/java/com/microsoft/playwright/Frame.java index c3a7acc5..1ad5245a 100644 --- a/playwright/src/main/java/com/microsoft/playwright/Frame.java +++ b/playwright/src/main/java/com/microsoft/playwright/Frame.java @@ -1875,7 +1875,9 @@ public interface Frame { */ public Double timeout; /** - * A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. + * A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the + * parameter is a string without wilcard characters, the method will wait for navigation to URL that is exactly equal to + * the string. */ public Object url; /** @@ -1899,21 +1901,27 @@ public interface Frame { return this; } /** - * A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. + * A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the + * parameter is a string without wilcard characters, the method will wait for navigation to URL that is exactly equal to + * the string. */ public WaitForNavigationOptions setUrl(String url) { this.url = url; return this; } /** - * A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. + * A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the + * parameter is a string without wilcard characters, the method will wait for navigation to URL that is exactly equal to + * the string. */ public WaitForNavigationOptions setUrl(Pattern url) { this.url = url; return this; } /** - * A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. + * A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the + * parameter is a string without wilcard characters, the method will wait for navigation to URL that is exactly equal to + * the string. */ public WaitForNavigationOptions setUrl(Predicate url) { this.url = url; @@ -3955,7 +3963,9 @@ public interface Frame { * frame.waitForURL("**\/target.html"); * } * - * @param url A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. + * @param url A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the + * parameter is a string without wilcard characters, the method will wait for navigation to URL that is exactly equal to + * the string. */ default void waitForURL(String url) { waitForURL(url, null); @@ -3967,7 +3977,9 @@ public interface Frame { * frame.waitForURL("**\/target.html"); * } * - * @param url A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. + * @param url A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the + * parameter is a string without wilcard characters, the method will wait for navigation to URL that is exactly equal to + * the string. */ void waitForURL(String url, WaitForURLOptions options); /** @@ -3977,7 +3989,9 @@ public interface Frame { * frame.waitForURL("**\/target.html"); * } * - * @param url A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. + * @param url A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the + * parameter is a string without wilcard characters, the method will wait for navigation to URL that is exactly equal to + * the string. */ default void waitForURL(Pattern url) { waitForURL(url, null); @@ -3989,7 +4003,9 @@ public interface Frame { * frame.waitForURL("**\/target.html"); * } * - * @param url A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. + * @param url A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the + * parameter is a string without wilcard characters, the method will wait for navigation to URL that is exactly equal to + * the string. */ void waitForURL(Pattern url, WaitForURLOptions options); /** @@ -3999,7 +4015,9 @@ public interface Frame { * frame.waitForURL("**\/target.html"); * } * - * @param url A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. + * @param url A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the + * parameter is a string without wilcard characters, the method will wait for navigation to URL that is exactly equal to + * the string. */ default void waitForURL(Predicate url) { waitForURL(url, null); @@ -4011,7 +4029,9 @@ public interface Frame { * frame.waitForURL("**\/target.html"); * } * - * @param url A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. + * @param url A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the + * parameter is a string without wilcard characters, the method will wait for navigation to URL that is exactly equal to + * the string. */ void waitForURL(Predicate url, WaitForURLOptions options); } diff --git a/playwright/src/main/java/com/microsoft/playwright/Page.java b/playwright/src/main/java/com/microsoft/playwright/Page.java index f14db33b..9565c799 100644 --- a/playwright/src/main/java/com/microsoft/playwright/Page.java +++ b/playwright/src/main/java/com/microsoft/playwright/Page.java @@ -2712,7 +2712,9 @@ public interface Page extends AutoCloseable { */ public Double timeout; /** - * A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. + * A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the + * parameter is a string without wilcard characters, the method will wait for navigation to URL that is exactly equal to + * the string. */ public Object url; /** @@ -2736,21 +2738,27 @@ public interface Page extends AutoCloseable { return this; } /** - * A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. + * A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the + * parameter is a string without wilcard characters, the method will wait for navigation to URL that is exactly equal to + * the string. */ public WaitForNavigationOptions setUrl(String url) { this.url = url; return this; } /** - * A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. + * A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the + * parameter is a string without wilcard characters, the method will wait for navigation to URL that is exactly equal to + * the string. */ public WaitForNavigationOptions setUrl(Pattern url) { this.url = url; return this; } /** - * A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. + * A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the + * parameter is a string without wilcard characters, the method will wait for navigation to URL that is exactly equal to + * the string. */ public WaitForNavigationOptions setUrl(Predicate url) { this.url = url; @@ -6394,7 +6402,9 @@ public interface Page extends AutoCloseable { * *

Shortcut for main frame's {@link Frame#waitForURL Frame.waitForURL()}. * - * @param url A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. + * @param url A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the + * parameter is a string without wilcard characters, the method will wait for navigation to URL that is exactly equal to + * the string. */ default void waitForURL(String url) { waitForURL(url, null); @@ -6408,7 +6418,9 @@ public interface Page extends AutoCloseable { * *

Shortcut for main frame's {@link Frame#waitForURL Frame.waitForURL()}. * - * @param url A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. + * @param url A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the + * parameter is a string without wilcard characters, the method will wait for navigation to URL that is exactly equal to + * the string. */ void waitForURL(String url, WaitForURLOptions options); /** @@ -6420,7 +6432,9 @@ public interface Page extends AutoCloseable { * *

Shortcut for main frame's {@link Frame#waitForURL Frame.waitForURL()}. * - * @param url A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. + * @param url A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the + * parameter is a string without wilcard characters, the method will wait for navigation to URL that is exactly equal to + * the string. */ default void waitForURL(Pattern url) { waitForURL(url, null); @@ -6434,7 +6448,9 @@ public interface Page extends AutoCloseable { * *

Shortcut for main frame's {@link Frame#waitForURL Frame.waitForURL()}. * - * @param url A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. + * @param url A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the + * parameter is a string without wilcard characters, the method will wait for navigation to URL that is exactly equal to + * the string. */ void waitForURL(Pattern url, WaitForURLOptions options); /** @@ -6446,7 +6462,9 @@ public interface Page extends AutoCloseable { * *

Shortcut for main frame's {@link Frame#waitForURL Frame.waitForURL()}. * - * @param url A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. + * @param url A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the + * parameter is a string without wilcard characters, the method will wait for navigation to URL that is exactly equal to + * the string. */ default void waitForURL(Predicate url) { waitForURL(url, null); @@ -6460,7 +6478,9 @@ public interface Page extends AutoCloseable { * *

Shortcut for main frame's {@link Frame#waitForURL Frame.waitForURL()}. * - * @param url A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. + * @param url A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the + * parameter is a string without wilcard characters, the method will wait for navigation to URL that is exactly equal to + * the string. */ void waitForURL(Predicate url, WaitForURLOptions options); /** diff --git a/playwright/src/test/java/com/microsoft/playwright/TestElementHandleConvenience.java b/playwright/src/test/java/com/microsoft/playwright/TestElementHandleConvenience.java index bc0be752..d2fe8844 100644 --- a/playwright/src/test/java/com/microsoft/playwright/TestElementHandleConvenience.java +++ b/playwright/src/test/java/com/microsoft/playwright/TestElementHandleConvenience.java @@ -61,14 +61,14 @@ public class TestElementHandleConvenience extends TestBase { page.inputValue("#inner"); fail("did not throw"); } catch (PlaywrightException e) { - assertTrue(e.getMessage().contains("Node is not an HTMLInputElement or HTMLTextAreaElement"), e.getMessage()); + assertTrue(e.getMessage().contains("Node is not an ,