Skip to content

Commit 46f4ac1

Browse files
authored
chore: roll driver to 1.46.0-beta (#1638)
1 parent 73d2255 commit 46f4ac1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+1264
-446
lines changed

README.md

Lines changed: 3 additions & 3 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 -->127.0.6533.17<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
15-
| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> ||||
16-
| Firefox <!-- GEN:firefox-version -->127.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
14+
| Chromium <!-- GEN:chromium-version -->128.0.6613.7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
15+
| 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: |
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: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,22 @@ class NewContextOptions {
4141
* </ul>
4242
*/
4343
public String baseURL;
44+
/**
45+
* TLS Client Authentication allows the server to request a client certificate and verify it.
46+
*
47+
* <p> <strong>Details</strong>
48+
*
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.
53+
*
54+
* <p> <strong>NOTE:</strong> Using Client Certificates in combination with Proxy Servers is not supported.
55+
*
56+
* <p> <strong>NOTE:</strong> When using WebKit on macOS, accessing {@code localhost} will not pick up client certificates. You can make it work by
57+
* replacing {@code localhost} with {@code local.playwright}.
58+
*/
59+
public List<ClientCertificate> clientCertificates;
4460
/**
4561
* An object containing additional HTTP headers to be sent with every request. Defaults to none.
4662
*/
@@ -100,6 +116,25 @@ public NewContextOptions setBaseURL(String baseURL) {
100116
this.baseURL = baseURL;
101117
return this;
102118
}
119+
/**
120+
* TLS Client Authentication allows the server to request a client certificate and verify it.
121+
*
122+
* <p> <strong>Details</strong>
123+
*
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.
128+
*
129+
* <p> <strong>NOTE:</strong> Using Client Certificates in combination with Proxy Servers is not supported.
130+
*
131+
* <p> <strong>NOTE:</strong> When using WebKit on macOS, accessing {@code localhost} will not pick up client certificates. You can make it work by
132+
* replacing {@code localhost} with {@code local.playwright}.
133+
*/
134+
public NewContextOptions setClientCertificates(List<ClientCertificate> clientCertificates) {
135+
this.clientCertificates = clientCertificates;
136+
return this;
137+
}
103138
/**
104139
* An object containing additional HTTP headers to be sent with every request. Defaults to none.
105140
*/

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

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,22 @@ class NewContextOptions {
9696
* Toggles bypassing page's Content-Security-Policy. Defaults to {@code false}.
9797
*/
9898
public Boolean bypassCSP;
99+
/**
100+
* TLS Client Authentication allows the server to request a client certificate and verify it.
101+
*
102+
* <p> <strong>Details</strong>
103+
*
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.
108+
*
109+
* <p> <strong>NOTE:</strong> Using Client Certificates in combination with Proxy Servers is not supported.
110+
*
111+
* <p> <strong>NOTE:</strong> When using WebKit on macOS, accessing {@code localhost} will not pick up client certificates. You can make it work by
112+
* replacing {@code localhost} with {@code local.playwright}.
113+
*/
114+
public List<ClientCertificate> clientCertificates;
99115
/**
100116
* Emulates {@code "prefers-colors-scheme"} media feature, supported values are {@code "light"}, {@code "dark"}, {@code
101117
* "no-preference"}. See {@link com.microsoft.playwright.Page#emulateMedia Page.emulateMedia()} for more details. Passing
@@ -295,6 +311,25 @@ public NewContextOptions setBypassCSP(boolean bypassCSP) {
295311
this.bypassCSP = bypassCSP;
296312
return this;
297313
}
314+
/**
315+
* TLS Client Authentication allows the server to request a client certificate and verify it.
316+
*
317+
* <p> <strong>Details</strong>
318+
*
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.
323+
*
324+
* <p> <strong>NOTE:</strong> Using Client Certificates in combination with Proxy Servers is not supported.
325+
*
326+
* <p> <strong>NOTE:</strong> When using WebKit on macOS, accessing {@code localhost} will not pick up client certificates. You can make it work by
327+
* replacing {@code localhost} with {@code local.playwright}.
328+
*/
329+
public NewContextOptions setClientCertificates(List<ClientCertificate> clientCertificates) {
330+
this.clientCertificates = clientCertificates;
331+
return this;
332+
}
298333
/**
299334
* Emulates {@code "prefers-colors-scheme"} media feature, supported values are {@code "light"}, {@code "dark"}, {@code
300335
* "no-preference"}. See {@link com.microsoft.playwright.Page#emulateMedia Page.emulateMedia()} for more details. Passing
@@ -626,6 +661,22 @@ class NewPageOptions {
626661
* Toggles bypassing page's Content-Security-Policy. Defaults to {@code false}.
627662
*/
628663
public Boolean bypassCSP;
664+
/**
665+
* TLS Client Authentication allows the server to request a client certificate and verify it.
666+
*
667+
* <p> <strong>Details</strong>
668+
*
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.
673+
*
674+
* <p> <strong>NOTE:</strong> Using Client Certificates in combination with Proxy Servers is not supported.
675+
*
676+
* <p> <strong>NOTE:</strong> When using WebKit on macOS, accessing {@code localhost} will not pick up client certificates. You can make it work by
677+
* replacing {@code localhost} with {@code local.playwright}.
678+
*/
679+
public List<ClientCertificate> clientCertificates;
629680
/**
630681
* Emulates {@code "prefers-colors-scheme"} media feature, supported values are {@code "light"}, {@code "dark"}, {@code
631682
* "no-preference"}. See {@link com.microsoft.playwright.Page#emulateMedia Page.emulateMedia()} for more details. Passing
@@ -825,6 +876,25 @@ public NewPageOptions setBypassCSP(boolean bypassCSP) {
825876
this.bypassCSP = bypassCSP;
826877
return this;
827878
}
879+
/**
880+
* TLS Client Authentication allows the server to request a client certificate and verify it.
881+
*
882+
* <p> <strong>Details</strong>
883+
*
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.
888+
*
889+
* <p> <strong>NOTE:</strong> Using Client Certificates in combination with Proxy Servers is not supported.
890+
*
891+
* <p> <strong>NOTE:</strong> When using WebKit on macOS, accessing {@code localhost} will not pick up client certificates. You can make it work by
892+
* replacing {@code localhost} with {@code local.playwright}.
893+
*/
894+
public NewPageOptions setClientCertificates(List<ClientCertificate> clientCertificates) {
895+
this.clientCertificates = clientCertificates;
896+
return this;
897+
}
828898
/**
829899
* Emulates {@code "prefers-colors-scheme"} media feature, supported values are {@code "light"}, {@code "dark"}, {@code
830900
* "no-preference"}. See {@link com.microsoft.playwright.Page#emulateMedia Page.emulateMedia()} for more details. Passing

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -514,9 +514,6 @@ public WaitForPageOptions setTimeout(double timeout) {
514514
* browserContext.addCookies(Arrays.asList(cookieObject1, cookieObject2));
515515
* }</pre>
516516
*
517-
* @param cookies Adds cookies to the browser context.
518-
*
519-
* <p> For the cookie to apply to all subdomains as well, prefix domain with a dot, like this: ".example.com".
520517
* @since v1.8
521518
*/
522519
void addCookies(List<Cookie> cookies);

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

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,22 @@ class LaunchPersistentContextOptions {
455455
* Enable Chromium sandboxing. Defaults to {@code false}.
456456
*/
457457
public Boolean chromiumSandbox;
458+
/**
459+
* TLS Client Authentication allows the server to request a client certificate and verify it.
460+
*
461+
* <p> <strong>Details</strong>
462+
*
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.
467+
*
468+
* <p> <strong>NOTE:</strong> Using Client Certificates in combination with Proxy Servers is not supported.
469+
*
470+
* <p> <strong>NOTE:</strong> When using WebKit on macOS, accessing {@code localhost} will not pick up client certificates. You can make it work by
471+
* replacing {@code localhost} with {@code local.playwright}.
472+
*/
473+
public List<ClientCertificate> clientCertificates;
458474
/**
459475
* Emulates {@code "prefers-colors-scheme"} media feature, supported values are {@code "light"}, {@code "dark"}, {@code
460476
* "no-preference"}. See {@link com.microsoft.playwright.Page#emulateMedia Page.emulateMedia()} for more details. Passing
@@ -742,6 +758,25 @@ public LaunchPersistentContextOptions setChromiumSandbox(boolean chromiumSandbox
742758
this.chromiumSandbox = chromiumSandbox;
743759
return this;
744760
}
761+
/**
762+
* TLS Client Authentication allows the server to request a client certificate and verify it.
763+
*
764+
* <p> <strong>Details</strong>
765+
*
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.
770+
*
771+
* <p> <strong>NOTE:</strong> Using Client Certificates in combination with Proxy Servers is not supported.
772+
*
773+
* <p> <strong>NOTE:</strong> When using WebKit on macOS, accessing {@code localhost} will not pick up client certificates. You can make it work by
774+
* replacing {@code localhost} with {@code local.playwright}.
775+
*/
776+
public LaunchPersistentContextOptions setClientCertificates(List<ClientCertificate> clientCertificates) {
777+
this.clientCertificates = clientCertificates;
778+
return this;
779+
}
745780
/**
746781
* Emulates {@code "prefers-colors-scheme"} media feature, supported values are {@code "light"}, {@code "dark"}, {@code
747782
* "no-preference"}. See {@link com.microsoft.playwright.Page#emulateMedia Page.emulateMedia()} for more details. Passing

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ default void install() {
174174
* page.clock().pauseAt("2020-02-02");
175175
* }</pre>
176176
*
177+
* @param time Time to pause at.
177178
* @since v1.45
178179
*/
179180
void pauseAt(long time);
@@ -193,6 +194,7 @@ default void install() {
193194
* page.clock().pauseAt("2020-02-02");
194195
* }</pre>
195196
*
197+
* @param time Time to pause at.
196198
* @since v1.45
197199
*/
198200
void pauseAt(String time);
@@ -212,6 +214,7 @@ default void install() {
212214
* page.clock().pauseAt("2020-02-02");
213215
* }</pre>
214216
*
217+
* @param time Time to pause at.
215218
* @since v1.45
216219
*/
217220
void pauseAt(Date time);
@@ -231,7 +234,7 @@ default void install() {
231234
* page.clock().setFixedTime("2020-02-02");
232235
* }</pre>
233236
*
234-
* @param time Time to be set.
237+
* @param time Time to be set in milliseconds.
235238
* @since v1.45
236239
*/
237240
void setFixedTime(long time);
@@ -245,7 +248,7 @@ default void install() {
245248
* page.clock().setFixedTime("2020-02-02");
246249
* }</pre>
247250
*
248-
* @param time Time to be set.
251+
* @param time Time to be set in milliseconds.
249252
* @since v1.45
250253
*/
251254
void setFixedTime(String time);
@@ -259,7 +262,7 @@ default void install() {
259262
* page.clock().setFixedTime("2020-02-02");
260263
* }</pre>
261264
*
262-
* @param time Time to be set.
265+
* @param time Time to be set in milliseconds.
263266
* @since v1.45
264267
*/
265268
void setFixedTime(Date time);
@@ -273,6 +276,7 @@ default void install() {
273276
* page.clock().setSystemTime("2020-02-02");
274277
* }</pre>
275278
*
279+
* @param time Time to be set in milliseconds.
276280
* @since v1.45
277281
*/
278282
void setSystemTime(long time);
@@ -286,6 +290,7 @@ default void install() {
286290
* page.clock().setSystemTime("2020-02-02");
287291
* }</pre>
288292
*
293+
* @param time Time to be set in milliseconds.
289294
* @since v1.45
290295
*/
291296
void setSystemTime(String time);
@@ -299,6 +304,7 @@ default void install() {
299304
* page.clock().setSystemTime("2020-02-02");
300305
* }</pre>
301306
*
307+
* @param time Time to be set in milliseconds.
302308
* @since v1.45
303309
*/
304310
void setSystemTime(Date time);

0 commit comments

Comments
 (0)