Skip to content

Commit e4828d0

Browse files
authored
chore: roll 1.45.0 (#1609)
1 parent a08ab2d commit e4828d0

File tree

5 files changed

+24
-85
lines changed

5 files changed

+24
-85
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 -->127.0.6533.5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
14+
| Chromium <!-- GEN:chromium-version -->127.0.6533.17<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
1515
| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> ||||
1616
| Firefox <!-- GEN:firefox-version -->127.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
1717

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

Lines changed: 2 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -279,14 +279,12 @@ public CloseOptions setReason(String reason) {
279279
}
280280
class ExposeBindingOptions {
281281
/**
282-
* Whether to pass the argument as a handle, instead of passing by value. When passing a handle, only one argument is
283-
* supported. When passing by value, multiple arguments are supported.
282+
* @deprecated This option will be removed in the future.
284283
*/
285284
public Boolean handle;
286285

287286
/**
288-
* Whether to pass the argument as a handle, instead of passing by value. When passing a handle, only one argument is
289-
* supported. When passing by value, multiple arguments are supported.
287+
* @deprecated This option will be removed in the future.
290288
*/
291289
public ExposeBindingOptions setHandle(boolean handle) {
292290
this.handle = handle;
@@ -723,21 +721,6 @@ default List<Cookie> cookies() {
723721
* }
724722
* }</pre>
725723
*
726-
* <p> An example of passing an element handle:
727-
* <pre>{@code
728-
* context.exposeBinding("clicked", (source, args) -> {
729-
* ElementHandle element = (ElementHandle) args[0];
730-
* System.out.println(element.textContent());
731-
* return null;
732-
* }, new BrowserContext.ExposeBindingOptions().setHandle(true));
733-
* page.setContent("" +
734-
* "<script>\n" +
735-
* " document.addEventListener('click', event => window.clicked(event.target));\n" +
736-
* "</script>\n" +
737-
* "<div>Click me</div>\n" +
738-
* "<div>Or click me</div>\n");
739-
* }</pre>
740-
*
741724
* @param name Name of the function on the window object.
742725
* @param callback Callback function that will be called in the Playwright's context.
743726
* @since v1.8
@@ -785,21 +768,6 @@ default void exposeBinding(String name, BindingCallback callback) {
785768
* }
786769
* }</pre>
787770
*
788-
* <p> An example of passing an element handle:
789-
* <pre>{@code
790-
* context.exposeBinding("clicked", (source, args) -> {
791-
* ElementHandle element = (ElementHandle) args[0];
792-
* System.out.println(element.textContent());
793-
* return null;
794-
* }, new BrowserContext.ExposeBindingOptions().setHandle(true));
795-
* page.setContent("" +
796-
* "<script>\n" +
797-
* " document.addEventListener('click', event => window.clicked(event.target));\n" +
798-
* "</script>\n" +
799-
* "<div>Click me</div>\n" +
800-
* "<div>Or click me</div>\n");
801-
* }</pre>
802-
*
803771
* @param name Name of the function on the window object.
804772
* @param callback Callback function that will be called in the Playwright's context.
805773
* @since v1.8

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

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,8 @@ default void install() {
169169
*
170170
* <p> <strong>Usage</strong>
171171
* <pre>{@code
172-
* page.clock().pauseAt(Instant.parse("2020-02-02"));
172+
* SimpleDateFormat format = new SimpleDateFormat("yyy-MM-dd");
173+
* page.clock().pauseAt(format.parse("2020-02-02"));
173174
* page.clock().pauseAt("2020-02-02");
174175
* }</pre>
175176
*
@@ -187,7 +188,8 @@ default void install() {
187188
*
188189
* <p> <strong>Usage</strong>
189190
* <pre>{@code
190-
* page.clock().pauseAt(Instant.parse("2020-02-02"));
191+
* SimpleDateFormat format = new SimpleDateFormat("yyy-MM-dd");
192+
* page.clock().pauseAt(format.parse("2020-02-02"));
191193
* page.clock().pauseAt("2020-02-02");
192194
* }</pre>
193195
*
@@ -205,7 +207,8 @@ default void install() {
205207
*
206208
* <p> <strong>Usage</strong>
207209
* <pre>{@code
208-
* page.clock().pauseAt(Instant.parse("2020-02-02"));
210+
* SimpleDateFormat format = new SimpleDateFormat("yyy-MM-dd");
211+
* page.clock().pauseAt(format.parse("2020-02-02"));
209212
* page.clock().pauseAt("2020-02-02");
210213
* }</pre>
211214
*
@@ -223,8 +226,8 @@ default void install() {
223226
*
224227
* <p> <strong>Usage</strong>
225228
* <pre>{@code
226-
* page.clock().setFixedTime(Instant.now());
227-
* page.clock().setFixedTime(Instant.parse("2020-02-02"));
229+
* page.clock().setFixedTime(new Date());
230+
* page.clock().setFixedTime(new SimpleDateFormat("yyy-MM-dd").parse("2020-02-02"));
228231
* page.clock().setFixedTime("2020-02-02");
229232
* }</pre>
230233
*
@@ -237,8 +240,8 @@ default void install() {
237240
*
238241
* <p> <strong>Usage</strong>
239242
* <pre>{@code
240-
* page.clock().setFixedTime(Instant.now());
241-
* page.clock().setFixedTime(Instant.parse("2020-02-02"));
243+
* page.clock().setFixedTime(new Date());
244+
* page.clock().setFixedTime(new SimpleDateFormat("yyy-MM-dd").parse("2020-02-02"));
242245
* page.clock().setFixedTime("2020-02-02");
243246
* }</pre>
244247
*
@@ -251,8 +254,8 @@ default void install() {
251254
*
252255
* <p> <strong>Usage</strong>
253256
* <pre>{@code
254-
* page.clock().setFixedTime(Instant.now());
255-
* page.clock().setFixedTime(Instant.parse("2020-02-02"));
257+
* page.clock().setFixedTime(new Date());
258+
* page.clock().setFixedTime(new SimpleDateFormat("yyy-MM-dd").parse("2020-02-02"));
256259
* page.clock().setFixedTime("2020-02-02");
257260
* }</pre>
258261
*
@@ -265,8 +268,8 @@ default void install() {
265268
*
266269
* <p> <strong>Usage</strong>
267270
* <pre>{@code
268-
* page.clock().setSystemTime(Instant.now());
269-
* page.clock().setSystemTime(Instant.parse("2020-02-02"));
271+
* page.clock().setSystemTime(new Date());
272+
* page.clock().setSystemTime(new SimpleDateFormat("yyy-MM-dd").parse("2020-02-02"));
270273
* page.clock().setSystemTime("2020-02-02");
271274
* }</pre>
272275
*
@@ -278,8 +281,8 @@ default void install() {
278281
*
279282
* <p> <strong>Usage</strong>
280283
* <pre>{@code
281-
* page.clock().setSystemTime(Instant.now());
282-
* page.clock().setSystemTime(Instant.parse("2020-02-02"));
284+
* page.clock().setSystemTime(new Date());
285+
* page.clock().setSystemTime(new SimpleDateFormat("yyy-MM-dd").parse("2020-02-02"));
283286
* page.clock().setSystemTime("2020-02-02");
284287
* }</pre>
285288
*
@@ -291,8 +294,8 @@ default void install() {
291294
*
292295
* <p> <strong>Usage</strong>
293296
* <pre>{@code
294-
* page.clock().setSystemTime(Instant.now());
295-
* page.clock().setSystemTime(Instant.parse("2020-02-02"));
297+
* page.clock().setSystemTime(new Date());
298+
* page.clock().setSystemTime(new SimpleDateFormat("yyy-MM-dd").parse("2020-02-02"));
296299
* page.clock().setSystemTime("2020-02-02");
297300
* }</pre>
298301
*

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

Lines changed: 2 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1042,14 +1042,12 @@ public EvalOnSelectorOptions setStrict(boolean strict) {
10421042
}
10431043
class ExposeBindingOptions {
10441044
/**
1045-
* Whether to pass the argument as a handle, instead of passing by value. When passing a handle, only one argument is
1046-
* supported. When passing by value, multiple arguments are supported.
1045+
* @deprecated This option will be removed in the future.
10471046
*/
10481047
public Boolean handle;
10491048

10501049
/**
1051-
* Whether to pass the argument as a handle, instead of passing by value. When passing a handle, only one argument is
1052-
* supported. When passing by value, multiple arguments are supported.
1050+
* @deprecated This option will be removed in the future.
10531051
*/
10541052
public ExposeBindingOptions setHandle(boolean handle) {
10551053
this.handle = handle;
@@ -4629,21 +4627,6 @@ default JSHandle evaluateHandle(String expression) {
46294627
* }
46304628
* }</pre>
46314629
*
4632-
* <p> An example of passing an element handle:
4633-
* <pre>{@code
4634-
* page.exposeBinding("clicked", (source, args) -> {
4635-
* ElementHandle element = (ElementHandle) args[0];
4636-
* System.out.println(element.textContent());
4637-
* return null;
4638-
* }, new Page.ExposeBindingOptions().setHandle(true));
4639-
* page.setContent("" +
4640-
* "<script>\n" +
4641-
* " document.addEventListener('click', event => window.clicked(event.target));\n" +
4642-
* "</script>\n" +
4643-
* "<div>Click me</div>\n" +
4644-
* "<div>Or click me</div>\n");
4645-
* }</pre>
4646-
*
46474630
* @param name Name of the function on the window object.
46484631
* @param callback Callback function that will be called in the Playwright's context.
46494632
* @since v1.8
@@ -4694,21 +4677,6 @@ default void exposeBinding(String name, BindingCallback callback) {
46944677
* }
46954678
* }</pre>
46964679
*
4697-
* <p> An example of passing an element handle:
4698-
* <pre>{@code
4699-
* page.exposeBinding("clicked", (source, args) -> {
4700-
* ElementHandle element = (ElementHandle) args[0];
4701-
* System.out.println(element.textContent());
4702-
* return null;
4703-
* }, new Page.ExposeBindingOptions().setHandle(true));
4704-
* page.setContent("" +
4705-
* "<script>\n" +
4706-
* " document.addEventListener('click', event => window.clicked(event.target));\n" +
4707-
* "</script>\n" +
4708-
* "<div>Click me</div>\n" +
4709-
* "<div>Or click me</div>\n");
4710-
* }</pre>
4711-
*
47124680
* @param name Name of the function on the window object.
47134681
* @param callback Callback function that will be called in the Playwright's context.
47144682
* @since v1.8

scripts/DRIVER_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.45.0-beta-1718733727000
1+
1.45.0

0 commit comments

Comments
 (0)