Skip to content

Commit 6b01b87

Browse files
authored
chore: roll driver to 1.47.0 alpha 2024 08 28 (#1663)
1 parent 2e32eb7 commit 6b01b87

File tree

15 files changed

+175
-93
lines changed

15 files changed

+175
-93
lines changed

README.md

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

1212
| | Linux | macOS | Windows |
1313
| :--- | :---: | :---: | :---: |
14-
| Chromium <!-- GEN:chromium-version -->128.0.6613.18<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
14+
| Chromium <!-- GEN:chromium-version -->128.0.6613.36<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
1515
| WebKit <!-- GEN:webkit-version -->18.0<!-- GEN:stop --> ||||
16-
| Firefox <!-- GEN:firefox-version -->128.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
16+
| Firefox <!-- GEN:firefox-version -->129.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
1717

1818
Headless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/java/docs/intro#system-requirements) for details.
1919

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ class NewContextOptions {
4646
*
4747
* <p> <strong>Details</strong>
4848
*
49-
* <p> An array of client certificates to be used. Each certificate object must have both {@code certPath} and {@code keyPath}
50-
* or a single {@code pfxPath} to load the client certificate. Optionally, {@code passphrase} property should be provided
51-
* if the certficiate is encrypted. The {@code origin} property should be provided with an exact match to the request
52-
* origin that the certificate is valid for.
49+
* <p> An array of client certificates to be used. Each certificate object must have either both {@code certPath} and {@code
50+
* keyPath}, a single {@code pfxPath}, or their corresponding direct value equivalents ({@code cert} and {@code key}, or
51+
* {@code pfx}). Optionally, {@code passphrase} property should be provided if the certificate is encrypted. The {@code
52+
* origin} property should be provided with an exact match to the request origin that the certificate is valid for.
5353
*
5454
* <p> <strong>NOTE:</strong> Using Client Certificates in combination with Proxy Servers is not supported.
5555
*
@@ -121,10 +121,10 @@ public NewContextOptions setBaseURL(String baseURL) {
121121
*
122122
* <p> <strong>Details</strong>
123123
*
124-
* <p> An array of client certificates to be used. Each certificate object must have both {@code certPath} and {@code keyPath}
125-
* or a single {@code pfxPath} to load the client certificate. Optionally, {@code passphrase} property should be provided
126-
* if the certficiate is encrypted. The {@code origin} property should be provided with an exact match to the request
127-
* origin that the certificate is valid for.
124+
* <p> An array of client certificates to be used. Each certificate object must have either both {@code certPath} and {@code
125+
* keyPath}, a single {@code pfxPath}, or their corresponding direct value equivalents ({@code cert} and {@code key}, or
126+
* {@code pfx}). Optionally, {@code passphrase} property should be provided if the certificate is encrypted. The {@code
127+
* origin} property should be provided with an exact match to the request origin that the certificate is valid for.
128128
*
129129
* <p> <strong>NOTE:</strong> Using Client Certificates in combination with Proxy Servers is not supported.
130130
*

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

Lines changed: 16 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,10 @@ class NewContextOptions {
101101
*
102102
* <p> <strong>Details</strong>
103103
*
104-
* <p> An array of client certificates to be used. Each certificate object must have both {@code certPath} and {@code keyPath}
105-
* or a single {@code pfxPath} to load the client certificate. Optionally, {@code passphrase} property should be provided
106-
* if the certficiate is encrypted. The {@code origin} property should be provided with an exact match to the request
107-
* origin that the certificate is valid for.
104+
* <p> An array of client certificates to be used. Each certificate object must have either both {@code certPath} and {@code
105+
* keyPath}, a single {@code pfxPath}, or their corresponding direct value equivalents ({@code cert} and {@code key}, or
106+
* {@code pfx}). Optionally, {@code passphrase} property should be provided if the certificate is encrypted. The {@code
107+
* origin} property should be provided with an exact match to the request origin that the certificate is valid for.
108108
*
109109
* <p> <strong>NOTE:</strong> Using Client Certificates in combination with Proxy Servers is not supported.
110110
*
@@ -179,10 +179,6 @@ class NewContextOptions {
179179
public List<String> permissions;
180180
/**
181181
* Network proxy settings to use with this context. Defaults to none.
182-
*
183-
* <p> <strong>NOTE:</strong> For Chromium on Windows the browser needs to be launched with the global proxy for this option to work. If all contexts
184-
* override the proxy, global proxy will be never used and can be any string, for example {@code launch({ proxy: { server:
185-
* 'http://per-context' } })}.
186182
*/
187183
public Proxy proxy;
188184
/**
@@ -316,10 +312,10 @@ public NewContextOptions setBypassCSP(boolean bypassCSP) {
316312
*
317313
* <p> <strong>Details</strong>
318314
*
319-
* <p> An array of client certificates to be used. Each certificate object must have both {@code certPath} and {@code keyPath}
320-
* or a single {@code pfxPath} to load the client certificate. Optionally, {@code passphrase} property should be provided
321-
* if the certficiate is encrypted. The {@code origin} property should be provided with an exact match to the request
322-
* origin that the certificate is valid for.
315+
* <p> An array of client certificates to be used. Each certificate object must have either both {@code certPath} and {@code
316+
* keyPath}, a single {@code pfxPath}, or their corresponding direct value equivalents ({@code cert} and {@code key}, or
317+
* {@code pfx}). Optionally, {@code passphrase} property should be provided if the certificate is encrypted. The {@code
318+
* origin} property should be provided with an exact match to the request origin that the certificate is valid for.
323319
*
324320
* <p> <strong>NOTE:</strong> Using Client Certificates in combination with Proxy Servers is not supported.
325321
*
@@ -446,20 +442,12 @@ public NewContextOptions setPermissions(List<String> permissions) {
446442
}
447443
/**
448444
* Network proxy settings to use with this context. Defaults to none.
449-
*
450-
* <p> <strong>NOTE:</strong> For Chromium on Windows the browser needs to be launched with the global proxy for this option to work. If all contexts
451-
* override the proxy, global proxy will be never used and can be any string, for example {@code launch({ proxy: { server:
452-
* 'http://per-context' } })}.
453445
*/
454446
public NewContextOptions setProxy(String server) {
455447
return setProxy(new Proxy(server));
456448
}
457449
/**
458450
* Network proxy settings to use with this context. Defaults to none.
459-
*
460-
* <p> <strong>NOTE:</strong> For Chromium on Windows the browser needs to be launched with the global proxy for this option to work. If all contexts
461-
* override the proxy, global proxy will be never used and can be any string, for example {@code launch({ proxy: { server:
462-
* 'http://per-context' } })}.
463451
*/
464452
public NewContextOptions setProxy(Proxy proxy) {
465453
this.proxy = proxy;
@@ -666,10 +654,10 @@ class NewPageOptions {
666654
*
667655
* <p> <strong>Details</strong>
668656
*
669-
* <p> An array of client certificates to be used. Each certificate object must have both {@code certPath} and {@code keyPath}
670-
* or a single {@code pfxPath} to load the client certificate. Optionally, {@code passphrase} property should be provided
671-
* if the certficiate is encrypted. The {@code origin} property should be provided with an exact match to the request
672-
* origin that the certificate is valid for.
657+
* <p> An array of client certificates to be used. Each certificate object must have either both {@code certPath} and {@code
658+
* keyPath}, a single {@code pfxPath}, or their corresponding direct value equivalents ({@code cert} and {@code key}, or
659+
* {@code pfx}). Optionally, {@code passphrase} property should be provided if the certificate is encrypted. The {@code
660+
* origin} property should be provided with an exact match to the request origin that the certificate is valid for.
673661
*
674662
* <p> <strong>NOTE:</strong> Using Client Certificates in combination with Proxy Servers is not supported.
675663
*
@@ -744,10 +732,6 @@ class NewPageOptions {
744732
public List<String> permissions;
745733
/**
746734
* Network proxy settings to use with this context. Defaults to none.
747-
*
748-
* <p> <strong>NOTE:</strong> For Chromium on Windows the browser needs to be launched with the global proxy for this option to work. If all contexts
749-
* override the proxy, global proxy will be never used and can be any string, for example {@code launch({ proxy: { server:
750-
* 'http://per-context' } })}.
751735
*/
752736
public Proxy proxy;
753737
/**
@@ -881,10 +865,10 @@ public NewPageOptions setBypassCSP(boolean bypassCSP) {
881865
*
882866
* <p> <strong>Details</strong>
883867
*
884-
* <p> An array of client certificates to be used. Each certificate object must have both {@code certPath} and {@code keyPath}
885-
* or a single {@code pfxPath} to load the client certificate. Optionally, {@code passphrase} property should be provided
886-
* if the certficiate is encrypted. The {@code origin} property should be provided with an exact match to the request
887-
* origin that the certificate is valid for.
868+
* <p> An array of client certificates to be used. Each certificate object must have either both {@code certPath} and {@code
869+
* keyPath}, a single {@code pfxPath}, or their corresponding direct value equivalents ({@code cert} and {@code key}, or
870+
* {@code pfx}). Optionally, {@code passphrase} property should be provided if the certificate is encrypted. The {@code
871+
* origin} property should be provided with an exact match to the request origin that the certificate is valid for.
888872
*
889873
* <p> <strong>NOTE:</strong> Using Client Certificates in combination with Proxy Servers is not supported.
890874
*
@@ -1011,20 +995,12 @@ public NewPageOptions setPermissions(List<String> permissions) {
1011995
}
1012996
/**
1013997
* Network proxy settings to use with this context. Defaults to none.
1014-
*
1015-
* <p> <strong>NOTE:</strong> For Chromium on Windows the browser needs to be launched with the global proxy for this option to work. If all contexts
1016-
* override the proxy, global proxy will be never used and can be any string, for example {@code launch({ proxy: { server:
1017-
* 'http://per-context' } })}.
1018998
*/
1019999
public NewPageOptions setProxy(String server) {
10201000
return setProxy(new Proxy(server));
10211001
}
10221002
/**
10231003
* Network proxy settings to use with this context. Defaults to none.
1024-
*
1025-
* <p> <strong>NOTE:</strong> For Chromium on Windows the browser needs to be launched with the global proxy for this option to work. If all contexts
1026-
* override the proxy, global proxy will be never used and can be any string, for example {@code launch({ proxy: { server:
1027-
* 'http://per-context' } })}.
10281004
*/
10291005
public NewPageOptions setProxy(Proxy proxy) {
10301006
this.proxy = proxy;

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

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@
3030
* <p> If a page opens another page, e.g. with a {@code window.open} call, the popup will belong to the parent page's browser
3131
* context.
3232
*
33-
* <p> Playwright allows creating "incognito" browser contexts with {@link com.microsoft.playwright.Browser#newContext
34-
* Browser.newContext()} method. "Incognito" browser contexts don't write any browsing data to disk.
33+
* <p> Playwright allows creating isolated non-persistent browser contexts with {@link
34+
* com.microsoft.playwright.Browser#newContext Browser.newContext()} method. Non-persistent browser contexts don't write
35+
* any browsing data to disk.
3536
* <pre>{@code
3637
* // Create a new incognito browser context
3738
* BrowserContext context = browser.newContext();
@@ -540,6 +541,12 @@ public WaitForPageOptions setTimeout(double timeout) {
540541
* BrowserContext.addInitScript()} and {@link com.microsoft.playwright.Page#addInitScript Page.addInitScript()} is not
541542
* defined.
542543
*
544+
* <p> <strong>Bundling</strong>
545+
*
546+
* <p> If you have a complex script split into several files, it needs to be bundled into a single file first. We recommend
547+
* running <a href="https://esbuild.github.io/">{@code esbuild}</a> or <a href="https://webpack.js.org/">{@code
548+
* webpack}</a> to produce a commonjs module and pass {@code path} and {@code arg}.
549+
*
543550
* @param script Script to be evaluated in all pages in the browser context.
544551
* @since v1.8
545552
*/
@@ -567,6 +574,12 @@ public WaitForPageOptions setTimeout(double timeout) {
567574
* BrowserContext.addInitScript()} and {@link com.microsoft.playwright.Page#addInitScript Page.addInitScript()} is not
568575
* defined.
569576
*
577+
* <p> <strong>Bundling</strong>
578+
*
579+
* <p> If you have a complex script split into several files, it needs to be bundled into a single file first. We recommend
580+
* running <a href="https://esbuild.github.io/">{@code esbuild}</a> or <a href="https://webpack.js.org/">{@code
581+
* webpack}</a> to produce a commonjs module and pass {@code path} and {@code arg}.
582+
*
570583
* @param script Script to be evaluated in all pages in the browser context.
571584
* @since v1.8
572585
*/

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -460,10 +460,10 @@ class LaunchPersistentContextOptions {
460460
*
461461
* <p> <strong>Details</strong>
462462
*
463-
* <p> An array of client certificates to be used. Each certificate object must have both {@code certPath} and {@code keyPath}
464-
* or a single {@code pfxPath} to load the client certificate. Optionally, {@code passphrase} property should be provided
465-
* if the certficiate is encrypted. The {@code origin} property should be provided with an exact match to the request
466-
* origin that the certificate is valid for.
463+
* <p> An array of client certificates to be used. Each certificate object must have either both {@code certPath} and {@code
464+
* keyPath}, a single {@code pfxPath}, or their corresponding direct value equivalents ({@code cert} and {@code key}, or
465+
* {@code pfx}). Optionally, {@code passphrase} property should be provided if the certificate is encrypted. The {@code
466+
* origin} property should be provided with an exact match to the request origin that the certificate is valid for.
467467
*
468468
* <p> <strong>NOTE:</strong> Using Client Certificates in combination with Proxy Servers is not supported.
469469
*
@@ -763,10 +763,10 @@ public LaunchPersistentContextOptions setChromiumSandbox(boolean chromiumSandbox
763763
*
764764
* <p> <strong>Details</strong>
765765
*
766-
* <p> An array of client certificates to be used. Each certificate object must have both {@code certPath} and {@code keyPath}
767-
* or a single {@code pfxPath} to load the client certificate. Optionally, {@code passphrase} property should be provided
768-
* if the certficiate is encrypted. The {@code origin} property should be provided with an exact match to the request
769-
* origin that the certificate is valid for.
766+
* <p> An array of client certificates to be used. Each certificate object must have either both {@code certPath} and {@code
767+
* keyPath}, a single {@code pfxPath}, or their corresponding direct value equivalents ({@code cert} and {@code key}, or
768+
* {@code pfx}). Optionally, {@code passphrase} property should be provided if the certificate is encrypted. The {@code
769+
* origin} property should be provided with an exact match to the request origin that the certificate is valid for.
770770
*
771771
* <p> <strong>NOTE:</strong> Using Client Certificates in combination with Proxy Servers is not supported.
772772
*

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,7 @@ class SelectOptionOptions {
777777
*/
778778
public Boolean force;
779779
/**
780-
* @deprecated This option will default to {@code true} in the future.
780+
* @deprecated This option has no effect.
781781
*/
782782
public Boolean noWaitAfter;
783783
/**
@@ -797,7 +797,7 @@ public SelectOptionOptions setForce(boolean force) {
797797
return this;
798798
}
799799
/**
800-
* @deprecated This option will default to {@code true} in the future.
800+
* @deprecated This option has no effect.
801801
*/
802802
public SelectOptionOptions setNoWaitAfter(boolean noWaitAfter) {
803803
this.noWaitAfter = noWaitAfter;

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1661,7 +1661,7 @@ class SelectOptionOptions {
16611661
*/
16621662
public Boolean force;
16631663
/**
1664-
* @deprecated This option will default to {@code true} in the future.
1664+
* @deprecated This option has no effect.
16651665
*/
16661666
public Boolean noWaitAfter;
16671667
/**
@@ -1686,7 +1686,7 @@ public SelectOptionOptions setForce(boolean force) {
16861686
return this;
16871687
}
16881688
/**
1689-
* @deprecated This option will default to {@code true} in the future.
1689+
* @deprecated This option has no effect.
16901690
*/
16911691
public SelectOptionOptions setNoWaitAfter(boolean noWaitAfter) {
16921692
this.noWaitAfter = noWaitAfter;

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1671,7 +1671,7 @@ class SelectOptionOptions {
16711671
*/
16721672
public Boolean force;
16731673
/**
1674-
* @deprecated This option will default to {@code true} in the future.
1674+
* @deprecated This option has no effect.
16751675
*/
16761676
public Boolean noWaitAfter;
16771677
/**
@@ -1691,7 +1691,7 @@ public SelectOptionOptions setForce(boolean force) {
16911691
return this;
16921692
}
16931693
/**
1694-
* @deprecated This option will default to {@code true} in the future.
1694+
* @deprecated This option has no effect.
16951695
*/
16961696
public SelectOptionOptions setNoWaitAfter(boolean noWaitAfter) {
16971697
this.noWaitAfter = noWaitAfter;

0 commit comments

Comments
 (0)