Skip to content

Commit 61f5e4d

Browse files
authored
chore: roll driver to 1.16.0-next-1632766475000 (#629)
1 parent 84344c9 commit 61f5e4d

File tree

9 files changed

+83
-43
lines changed

9 files changed

+83
-43
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Playwright is a Java library to automate [Chromium](https://www.chromium.org/Hom
1111

1212
| | Linux | macOS | Windows |
1313
| :--- | :---: | :---: | :---: |
14-
| Chromium <!-- GEN:chromium-version -->96.0.4641.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
14+
| Chromium <!-- GEN:chromium-version -->96.0.4655.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
1515
| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> ||||
1616
| Firefox <!-- GEN:firefox-version -->92.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
1717

playwright/src/main/java/com/microsoft/playwright/Browser.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class NewContextOptions {
8686
*/
8787
public Double deviceScaleFactor;
8888
/**
89-
* An object containing additional HTTP headers to be sent with every request. All header values must be strings.
89+
* An object containing additional HTTP headers to be sent with every request.
9090
*/
9191
public Map<String, String> extraHTTPHeaders;
9292
/**
@@ -107,7 +107,7 @@ class NewContextOptions {
107107
*/
108108
public HttpCredentials httpCredentials;
109109
/**
110-
* Whether to ignore HTTPS errors during navigation. Defaults to {@code false}.
110+
* Whether to ignore HTTPS errors when sending network requests. Defaults to {@code false}.
111111
*/
112112
public Boolean ignoreHTTPSErrors;
113113
/**
@@ -249,7 +249,7 @@ public NewContextOptions setDeviceScaleFactor(double deviceScaleFactor) {
249249
return this;
250250
}
251251
/**
252-
* An object containing additional HTTP headers to be sent with every request. All header values must be strings.
252+
* An object containing additional HTTP headers to be sent with every request.
253253
*/
254254
public NewContextOptions setExtraHTTPHeaders(Map<String, String> extraHTTPHeaders) {
255255
this.extraHTTPHeaders = extraHTTPHeaders;
@@ -294,7 +294,7 @@ public NewContextOptions setHttpCredentials(HttpCredentials httpCredentials) {
294294
return this;
295295
}
296296
/**
297-
* Whether to ignore HTTPS errors during navigation. Defaults to {@code false}.
297+
* Whether to ignore HTTPS errors when sending network requests. Defaults to {@code false}.
298298
*/
299299
public NewContextOptions setIgnoreHTTPSErrors(boolean ignoreHTTPSErrors) {
300300
this.ignoreHTTPSErrors = ignoreHTTPSErrors;
@@ -510,7 +510,7 @@ class NewPageOptions {
510510
*/
511511
public Double deviceScaleFactor;
512512
/**
513-
* An object containing additional HTTP headers to be sent with every request. All header values must be strings.
513+
* An object containing additional HTTP headers to be sent with every request.
514514
*/
515515
public Map<String, String> extraHTTPHeaders;
516516
/**
@@ -531,7 +531,7 @@ class NewPageOptions {
531531
*/
532532
public HttpCredentials httpCredentials;
533533
/**
534-
* Whether to ignore HTTPS errors during navigation. Defaults to {@code false}.
534+
* Whether to ignore HTTPS errors when sending network requests. Defaults to {@code false}.
535535
*/
536536
public Boolean ignoreHTTPSErrors;
537537
/**
@@ -673,7 +673,7 @@ public NewPageOptions setDeviceScaleFactor(double deviceScaleFactor) {
673673
return this;
674674
}
675675
/**
676-
* An object containing additional HTTP headers to be sent with every request. All header values must be strings.
676+
* An object containing additional HTTP headers to be sent with every request.
677677
*/
678678
public NewPageOptions setExtraHTTPHeaders(Map<String, String> extraHTTPHeaders) {
679679
this.extraHTTPHeaders = extraHTTPHeaders;
@@ -718,7 +718,7 @@ public NewPageOptions setHttpCredentials(HttpCredentials httpCredentials) {
718718
return this;
719719
}
720720
/**
721-
* Whether to ignore HTTPS errors during navigation. Defaults to {@code false}.
721+
* Whether to ignore HTTPS errors when sending network requests. Defaults to {@code false}.
722722
*/
723723
public NewPageOptions setIgnoreHTTPSErrors(boolean ignoreHTTPSErrors) {
724724
this.ignoreHTTPSErrors = ignoreHTTPSErrors;

playwright/src/main/java/com/microsoft/playwright/BrowserType.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ class LaunchPersistentContextOptions {
435435
*/
436436
public Path executablePath;
437437
/**
438-
* An object containing additional HTTP headers to be sent with every request. All header values must be strings.
438+
* An object containing additional HTTP headers to be sent with every request.
439439
*/
440440
public Map<String, String> extraHTTPHeaders;
441441
/**
@@ -485,7 +485,7 @@ class LaunchPersistentContextOptions {
485485
*/
486486
public List<String> ignoreDefaultArgs;
487487
/**
488-
* Whether to ignore HTTPS errors during navigation. Defaults to {@code false}.
488+
* Whether to ignore HTTPS errors when sending network requests. Defaults to {@code false}.
489489
*/
490490
public Boolean ignoreHTTPSErrors;
491491
/**
@@ -692,7 +692,7 @@ public LaunchPersistentContextOptions setExecutablePath(Path executablePath) {
692692
return this;
693693
}
694694
/**
695-
* An object containing additional HTTP headers to be sent with every request. All header values must be strings.
695+
* An object containing additional HTTP headers to be sent with every request.
696696
*/
697697
public LaunchPersistentContextOptions setExtraHTTPHeaders(Map<String, String> extraHTTPHeaders) {
698698
this.extraHTTPHeaders = extraHTTPHeaders;
@@ -784,7 +784,7 @@ public LaunchPersistentContextOptions setIgnoreDefaultArgs(List<String> ignoreDe
784784
return this;
785785
}
786786
/**
787-
* Whether to ignore HTTPS errors during navigation. Defaults to {@code false}.
787+
* Whether to ignore HTTPS errors when sending network requests. Defaults to {@code false}.
788788
*/
789789
public LaunchPersistentContextOptions setIgnoreHTTPSErrors(boolean ignoreHTTPSErrors) {
790790
this.ignoreHTTPSErrors = ignoreHTTPSErrors;

playwright/src/main/java/com/microsoft/playwright/Frame.java

Lines changed: 30 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1875,7 +1875,9 @@ class WaitForNavigationOptions {
18751875
*/
18761876
public Double timeout;
18771877
/**
1878-
* A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation.
1878+
* A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the
1879+
* parameter is a string without wilcard characters, the method will wait for navigation to URL that is exactly equal to
1880+
* the string.
18791881
*/
18801882
public Object url;
18811883
/**
@@ -1899,21 +1901,27 @@ public WaitForNavigationOptions setTimeout(double timeout) {
18991901
return this;
19001902
}
19011903
/**
1902-
* A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation.
1904+
* A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the
1905+
* parameter is a string without wilcard characters, the method will wait for navigation to URL that is exactly equal to
1906+
* the string.
19031907
*/
19041908
public WaitForNavigationOptions setUrl(String url) {
19051909
this.url = url;
19061910
return this;
19071911
}
19081912
/**
1909-
* A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation.
1913+
* A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the
1914+
* parameter is a string without wilcard characters, the method will wait for navigation to URL that is exactly equal to
1915+
* the string.
19101916
*/
19111917
public WaitForNavigationOptions setUrl(Pattern url) {
19121918
this.url = url;
19131919
return this;
19141920
}
19151921
/**
1916-
* A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation.
1922+
* A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the
1923+
* parameter is a string without wilcard characters, the method will wait for navigation to URL that is exactly equal to
1924+
* the string.
19171925
*/
19181926
public WaitForNavigationOptions setUrl(Predicate<String> url) {
19191927
this.url = url;
@@ -3955,7 +3963,9 @@ default ElementHandle waitForSelector(String selector) {
39553963
* frame.waitForURL("**\/target.html");
39563964
* }</pre>
39573965
*
3958-
* @param url A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation.
3966+
* @param url A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the
3967+
* parameter is a string without wilcard characters, the method will wait for navigation to URL that is exactly equal to
3968+
* the string.
39593969
*/
39603970
default void waitForURL(String url) {
39613971
waitForURL(url, null);
@@ -3967,7 +3977,9 @@ default void waitForURL(String url) {
39673977
* frame.waitForURL("**\/target.html");
39683978
* }</pre>
39693979
*
3970-
* @param url A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation.
3980+
* @param url A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the
3981+
* parameter is a string without wilcard characters, the method will wait for navigation to URL that is exactly equal to
3982+
* the string.
39713983
*/
39723984
void waitForURL(String url, WaitForURLOptions options);
39733985
/**
@@ -3977,7 +3989,9 @@ default void waitForURL(String url) {
39773989
* frame.waitForURL("**\/target.html");
39783990
* }</pre>
39793991
*
3980-
* @param url A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation.
3992+
* @param url A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the
3993+
* parameter is a string without wilcard characters, the method will wait for navigation to URL that is exactly equal to
3994+
* the string.
39813995
*/
39823996
default void waitForURL(Pattern url) {
39833997
waitForURL(url, null);
@@ -3989,7 +4003,9 @@ default void waitForURL(Pattern url) {
39894003
* frame.waitForURL("**\/target.html");
39904004
* }</pre>
39914005
*
3992-
* @param url A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation.
4006+
* @param url A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the
4007+
* parameter is a string without wilcard characters, the method will wait for navigation to URL that is exactly equal to
4008+
* the string.
39934009
*/
39944010
void waitForURL(Pattern url, WaitForURLOptions options);
39954011
/**
@@ -3999,7 +4015,9 @@ default void waitForURL(Pattern url) {
39994015
* frame.waitForURL("**\/target.html");
40004016
* }</pre>
40014017
*
4002-
* @param url A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation.
4018+
* @param url A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the
4019+
* parameter is a string without wilcard characters, the method will wait for navigation to URL that is exactly equal to
4020+
* the string.
40034021
*/
40044022
default void waitForURL(Predicate<String> url) {
40054023
waitForURL(url, null);
@@ -4011,7 +4029,9 @@ default void waitForURL(Predicate<String> url) {
40114029
* frame.waitForURL("**\/target.html");
40124030
* }</pre>
40134031
*
4014-
* @param url A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation.
4032+
* @param url A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the
4033+
* parameter is a string without wilcard characters, the method will wait for navigation to URL that is exactly equal to
4034+
* the string.
40154035
*/
40164036
void waitForURL(Predicate<String> url, WaitForURLOptions options);
40174037
}

playwright/src/main/java/com/microsoft/playwright/Page.java

Lines changed: 30 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2712,7 +2712,9 @@ class WaitForNavigationOptions {
27122712
*/
27132713
public Double timeout;
27142714
/**
2715-
* A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation.
2715+
* A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the
2716+
* parameter is a string without wilcard characters, the method will wait for navigation to URL that is exactly equal to
2717+
* the string.
27162718
*/
27172719
public Object url;
27182720
/**
@@ -2736,21 +2738,27 @@ public WaitForNavigationOptions setTimeout(double timeout) {
27362738
return this;
27372739
}
27382740
/**
2739-
* A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation.
2741+
* A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the
2742+
* parameter is a string without wilcard characters, the method will wait for navigation to URL that is exactly equal to
2743+
* the string.
27402744
*/
27412745
public WaitForNavigationOptions setUrl(String url) {
27422746
this.url = url;
27432747
return this;
27442748
}
27452749
/**
2746-
* A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation.
2750+
* A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the
2751+
* parameter is a string without wilcard characters, the method will wait for navigation to URL that is exactly equal to
2752+
* the string.
27472753
*/
27482754
public WaitForNavigationOptions setUrl(Pattern url) {
27492755
this.url = url;
27502756
return this;
27512757
}
27522758
/**
2753-
* A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation.
2759+
* A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the
2760+
* parameter is a string without wilcard characters, the method will wait for navigation to URL that is exactly equal to
2761+
* the string.
27542762
*/
27552763
public WaitForNavigationOptions setUrl(Predicate<String> url) {
27562764
this.url = url;
@@ -6394,7 +6402,9 @@ default ElementHandle waitForSelector(String selector) {
63946402
*
63956403
* <p> Shortcut for main frame's {@link Frame#waitForURL Frame.waitForURL()}.
63966404
*
6397-
* @param url A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation.
6405+
* @param url A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the
6406+
* parameter is a string without wilcard characters, the method will wait for navigation to URL that is exactly equal to
6407+
* the string.
63986408
*/
63996409
default void waitForURL(String url) {
64006410
waitForURL(url, null);
@@ -6408,7 +6418,9 @@ default void waitForURL(String url) {
64086418
*
64096419
* <p> Shortcut for main frame's {@link Frame#waitForURL Frame.waitForURL()}.
64106420
*
6411-
* @param url A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation.
6421+
* @param url A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the
6422+
* parameter is a string without wilcard characters, the method will wait for navigation to URL that is exactly equal to
6423+
* the string.
64126424
*/
64136425
void waitForURL(String url, WaitForURLOptions options);
64146426
/**
@@ -6420,7 +6432,9 @@ default void waitForURL(String url) {
64206432
*
64216433
* <p> Shortcut for main frame's {@link Frame#waitForURL Frame.waitForURL()}.
64226434
*
6423-
* @param url A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation.
6435+
* @param url A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the
6436+
* parameter is a string without wilcard characters, the method will wait for navigation to URL that is exactly equal to
6437+
* the string.
64246438
*/
64256439
default void waitForURL(Pattern url) {
64266440
waitForURL(url, null);
@@ -6434,7 +6448,9 @@ default void waitForURL(Pattern url) {
64346448
*
64356449
* <p> Shortcut for main frame's {@link Frame#waitForURL Frame.waitForURL()}.
64366450
*
6437-
* @param url A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation.
6451+
* @param url A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the
6452+
* parameter is a string without wilcard characters, the method will wait for navigation to URL that is exactly equal to
6453+
* the string.
64386454
*/
64396455
void waitForURL(Pattern url, WaitForURLOptions options);
64406456
/**
@@ -6446,7 +6462,9 @@ default void waitForURL(Pattern url) {
64466462
*
64476463
* <p> Shortcut for main frame's {@link Frame#waitForURL Frame.waitForURL()}.
64486464
*
6449-
* @param url A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation.
6465+
* @param url A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the
6466+
* parameter is a string without wilcard characters, the method will wait for navigation to URL that is exactly equal to
6467+
* the string.
64506468
*/
64516469
default void waitForURL(Predicate<String> url) {
64526470
waitForURL(url, null);
@@ -6460,7 +6478,9 @@ default void waitForURL(Predicate<String> url) {
64606478
*
64616479
* <p> Shortcut for main frame's {@link Frame#waitForURL Frame.waitForURL()}.
64626480
*
6463-
* @param url A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation.
6481+
* @param url A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the
6482+
* parameter is a string without wilcard characters, the method will wait for navigation to URL that is exactly equal to
6483+
* the string.
64646484
*/
64656485
void waitForURL(Predicate<String> url, WaitForURLOptions options);
64666486
/**

playwright/src/test/java/com/microsoft/playwright/TestElementHandleConvenience.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,14 @@ void inputValueShouldWork() {
6161
page.inputValue("#inner");
6262
fail("did not throw");
6363
} catch (PlaywrightException e) {
64-
assertTrue(e.getMessage().contains("Node is not an HTMLInputElement or HTMLTextAreaElement"), e.getMessage());
64+
assertTrue(e.getMessage().contains("Node is not an <input>, <textarea> or <select> element"), e.getMessage());
6565
}
6666
ElementHandle handle2 = page.querySelector("#inner");
6767
try {
6868
handle2.inputValue();
6969
fail("did not throw");
7070
} catch (PlaywrightException e) {
71-
assertTrue(e.getMessage().contains("Node is not an HTMLInputElement or HTMLTextAreaElement"), e.getMessage());
71+
assertTrue(e.getMessage().contains("Node is not an <input>, <textarea> or <select> element"), e.getMessage());
7272
}
7373
}
7474

@@ -95,14 +95,14 @@ void innerTextShouldThrow() {
9595
page.innerText("svg");
9696
fail("did not throw");
9797
} catch (PlaywrightException e) {
98-
assertTrue(e.getMessage().contains("Not an HTMLElement"));
98+
assertTrue(e.getMessage().contains("Node is not an HTMLElement"), e.getMessage());
9999
}
100100
ElementHandle handle = page.querySelector("svg");
101101
try {
102102
handle.innerText();
103103
fail("did not throw");
104104
} catch (PlaywrightException e) {
105-
assertTrue(e.getMessage().contains("Not an HTMLElement"));
105+
assertTrue(e.getMessage().contains("Node is not an HTMLElement"), e.getMessage());
106106
}
107107
}
108108

0 commit comments

Comments
 (0)