Skip to content

Commit 4e52859

Browse files
authored
chore: roll to 1.35.0-beta (#1298)
1 parent b8a9d88 commit 4e52859

File tree

21 files changed

+267
-124
lines changed

21 files changed

+267
-124
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 -->114.0.5735.35<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
14+
| Chromium <!-- GEN:chromium-version -->115.0.5790.13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
1515
| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> ||||
1616
| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
1717

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class NewContextOptions {
4242
*/
4343
public String baseURL;
4444
/**
45-
* An object containing additional HTTP headers to be sent with every request.
45+
* An object containing additional HTTP headers to be sent with every request. Defaults to none.
4646
*/
4747
public Map<String, String> extraHTTPHeaders;
4848
/**
@@ -100,7 +100,7 @@ public NewContextOptions setBaseURL(String baseURL) {
100100
return this;
101101
}
102102
/**
103-
* An object containing additional HTTP headers to be sent with every request.
103+
* An object containing additional HTTP headers to be sent with every request. Defaults to none.
104104
*/
105105
public NewContextOptions setExtraHTTPHeaders(Map<String, String> extraHTTPHeaders) {
106106
this.extraHTTPHeaders = extraHTTPHeaders;

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

Lines changed: 46 additions & 38 deletions
Large diffs are not rendered by default.

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

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ class LaunchPersistentContextOptions {
382382
* Page.waitForURL()}, {@link Page#waitForRequest Page.waitForRequest()}, or {@link Page#waitForResponse
383383
* Page.waitForResponse()} it takes the base URL in consideration by using the <a
384384
* href="https://developer.mozilla.org/en-US/docs/Web/API/URL/URL">{@code URL()}</a> constructor for building the
385-
* corresponding URL. Examples:
385+
* corresponding URL. Unset by default. Examples:
386386
* <ul>
387387
* <li> baseURL: {@code http://localhost:3000} and navigating to {@code /bar.html} results in {@code
388388
* http://localhost:3000/bar.html}</li>
@@ -394,7 +394,7 @@ class LaunchPersistentContextOptions {
394394
*/
395395
public String baseURL;
396396
/**
397-
* Toggles bypassing page's Content-Security-Policy.
397+
* Toggles bypassing page's Content-Security-Policy. Defaults to {@code false}.
398398
*/
399399
public Boolean bypassCSP;
400400
/**
@@ -440,7 +440,7 @@ class LaunchPersistentContextOptions {
440440
*/
441441
public Path executablePath;
442442
/**
443-
* An object containing additional HTTP headers to be sent with every request.
443+
* An object containing additional HTTP headers to be sent with every request. Defaults to none.
444444
*/
445445
public Map<String, String> extraHTTPHeaders;
446446
/**
@@ -506,8 +506,9 @@ class LaunchPersistentContextOptions {
506506
public Boolean javaScriptEnabled;
507507
/**
508508
* Specify user locale, for example {@code en-GB}, {@code de-DE}, etc. Locale will affect {@code navigator.language} value,
509-
* {@code Accept-Language} request header value as well as number and date formatting rules. Learn more about emulation in
510-
* our <a href="https://playwright.dev/java/docs/emulation#locale--timezone">emulation guide</a>.
509+
* {@code Accept-Language} request header value as well as number and date formatting rules. Defaults to the system default
510+
* locale. Learn more about emulation in our <a
511+
* href="https://playwright.dev/java/docs/emulation#locale--timezone">emulation guide</a>.
511512
*/
512513
public String locale;
513514
/**
@@ -517,7 +518,7 @@ class LaunchPersistentContextOptions {
517518
public Boolean offline;
518519
/**
519520
* A list of permissions to grant to all pages in this context. See {@link BrowserContext#grantPermissions
520-
* BrowserContext.grantPermissions()} for more details.
521+
* BrowserContext.grantPermissions()} for more details. Defaults to none.
521522
*/
522523
public List<String> permissions;
523524
/**
@@ -585,7 +586,8 @@ class LaunchPersistentContextOptions {
585586
/**
586587
* If set to true, enables strict selectors mode for this context. In the strict selectors mode all operations on selectors
587588
* that imply single target DOM element will throw when more than one element matches the selector. This option does not
588-
* affect any Locator APIs (Locators are always strict). See {@code Locator} to learn more about the strict mode.
589+
* affect any Locator APIs (Locators are always strict). Defaults to {@code false}. See {@code Locator} to learn more about
590+
* the strict mode.
589591
*/
590592
public Boolean strictSelectors;
591593
/**
@@ -596,7 +598,7 @@ class LaunchPersistentContextOptions {
596598
/**
597599
* Changes the timezone of the context. See <a
598600
* href="https://cs.chromium.org/chromium/src/third_party/icu/source/data/misc/metaZones.txt?rcl=faee8bc70570192d82d2978a71e2a615788597d1">ICU's
599-
* metaZones.txt</a> for a list of supported timezone IDs.
601+
* metaZones.txt</a> for a list of supported timezone IDs. Defaults to the system timezone.
600602
*/
601603
public String timezoneId;
602604
/**
@@ -637,7 +639,7 @@ public LaunchPersistentContextOptions setArgs(List<String> args) {
637639
* Page.waitForURL()}, {@link Page#waitForRequest Page.waitForRequest()}, or {@link Page#waitForResponse
638640
* Page.waitForResponse()} it takes the base URL in consideration by using the <a
639641
* href="https://developer.mozilla.org/en-US/docs/Web/API/URL/URL">{@code URL()}</a> constructor for building the
640-
* corresponding URL. Examples:
642+
* corresponding URL. Unset by default. Examples:
641643
* <ul>
642644
* <li> baseURL: {@code http://localhost:3000} and navigating to {@code /bar.html} results in {@code
643645
* http://localhost:3000/bar.html}</li>
@@ -652,7 +654,7 @@ public LaunchPersistentContextOptions setBaseURL(String baseURL) {
652654
return this;
653655
}
654656
/**
655-
* Toggles bypassing page's Content-Security-Policy.
657+
* Toggles bypassing page's Content-Security-Policy. Defaults to {@code false}.
656658
*/
657659
public LaunchPersistentContextOptions setBypassCSP(boolean bypassCSP) {
658660
this.bypassCSP = bypassCSP;
@@ -735,7 +737,7 @@ public LaunchPersistentContextOptions setExecutablePath(Path executablePath) {
735737
return this;
736738
}
737739
/**
738-
* An object containing additional HTTP headers to be sent with every request.
740+
* An object containing additional HTTP headers to be sent with every request. Defaults to none.
739741
*/
740742
public LaunchPersistentContextOptions setExtraHTTPHeaders(Map<String, String> extraHTTPHeaders) {
741743
this.extraHTTPHeaders = extraHTTPHeaders;
@@ -853,8 +855,9 @@ public LaunchPersistentContextOptions setJavaScriptEnabled(boolean javaScriptEna
853855
}
854856
/**
855857
* Specify user locale, for example {@code en-GB}, {@code de-DE}, etc. Locale will affect {@code navigator.language} value,
856-
* {@code Accept-Language} request header value as well as number and date formatting rules. Learn more about emulation in
857-
* our <a href="https://playwright.dev/java/docs/emulation#locale--timezone">emulation guide</a>.
858+
* {@code Accept-Language} request header value as well as number and date formatting rules. Defaults to the system default
859+
* locale. Learn more about emulation in our <a
860+
* href="https://playwright.dev/java/docs/emulation#locale--timezone">emulation guide</a>.
858861
*/
859862
public LaunchPersistentContextOptions setLocale(String locale) {
860863
this.locale = locale;
@@ -870,7 +873,7 @@ public LaunchPersistentContextOptions setOffline(boolean offline) {
870873
}
871874
/**
872875
* A list of permissions to grant to all pages in this context. See {@link BrowserContext#grantPermissions
873-
* BrowserContext.grantPermissions()} for more details.
876+
* BrowserContext.grantPermissions()} for more details. Defaults to none.
874877
*/
875878
public LaunchPersistentContextOptions setPermissions(List<String> permissions) {
876879
this.permissions = permissions;
@@ -1002,7 +1005,8 @@ public LaunchPersistentContextOptions setSlowMo(double slowMo) {
10021005
/**
10031006
* If set to true, enables strict selectors mode for this context. In the strict selectors mode all operations on selectors
10041007
* that imply single target DOM element will throw when more than one element matches the selector. This option does not
1005-
* affect any Locator APIs (Locators are always strict). See {@code Locator} to learn more about the strict mode.
1008+
* affect any Locator APIs (Locators are always strict). Defaults to {@code false}. See {@code Locator} to learn more about
1009+
* the strict mode.
10061010
*/
10071011
public LaunchPersistentContextOptions setStrictSelectors(boolean strictSelectors) {
10081012
this.strictSelectors = strictSelectors;
@@ -1019,7 +1023,7 @@ public LaunchPersistentContextOptions setTimeout(double timeout) {
10191023
/**
10201024
* Changes the timezone of the context. See <a
10211025
* href="https://cs.chromium.org/chromium/src/third_party/icu/source/data/misc/metaZones.txt?rcl=faee8bc70570192d82d2978a71e2a615788597d1">ICU's
1022-
* metaZones.txt</a> for a list of supported timezone IDs.
1026+
* metaZones.txt</a> for a list of supported timezone IDs. Defaults to the system timezone.
10231027
*/
10241028
public LaunchPersistentContextOptions setTimezoneId(String timezoneId) {
10251029
this.timezoneId = timezoneId;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public interface ConsoleMessage {
5959
/**
6060
* The page that produced this console message, if any.
6161
*
62-
* @since v1.33
62+
* @since v1.34
6363
*/
6464
Page page();
6565
/**

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ default void accept() {
8484
/**
8585
* The page that initiated this dialog, if available.
8686
*
87-
* @since v1.33
87+
* @since v1.34
8888
*/
8989
Page page();
9090
/**

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

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -602,9 +602,15 @@ class ScreenshotOptions {
602602
public ScreenshotCaret caret;
603603
/**
604604
* Specify locators that should be masked when the screenshot is taken. Masked elements will be overlaid with a pink box
605-
* {@code #FF00FF} that completely covers its bounding box.
605+
* {@code #FF00FF} (customized by {@code maskColor}) that completely covers its bounding box.
606606
*/
607607
public List<Locator> mask;
608+
/**
609+
* Specify the color of the overlay box for masked elements, in <a
610+
* href="https://developer.mozilla.org/en-US/docs/Web/CSS/color_value">CSS color format</a>. Default color is pink {@code
611+
* #FF00FF}.
612+
*/
613+
public String maskColor;
608614
/**
609615
* Hides default white background and allows capturing screenshots with transparency. Not applicable to {@code jpeg}
610616
* images. Defaults to {@code false}.
@@ -663,12 +669,21 @@ public ScreenshotOptions setCaret(ScreenshotCaret caret) {
663669
}
664670
/**
665671
* Specify locators that should be masked when the screenshot is taken. Masked elements will be overlaid with a pink box
666-
* {@code #FF00FF} that completely covers its bounding box.
672+
* {@code #FF00FF} (customized by {@code maskColor}) that completely covers its bounding box.
667673
*/
668674
public ScreenshotOptions setMask(List<Locator> mask) {
669675
this.mask = mask;
670676
return this;
671677
}
678+
/**
679+
* Specify the color of the overlay box for masked elements, in <a
680+
* href="https://developer.mozilla.org/en-US/docs/Web/CSS/color_value">CSS color format</a>. Default color is pink {@code
681+
* #FF00FF}.
682+
*/
683+
public ScreenshotOptions setMaskColor(String maskColor) {
684+
this.maskColor = maskColor;
685+
return this;
686+
}
672687
/**
673688
* Hides default white background and allows capturing screenshots with transparency. Not applicable to {@code jpeg}
674689
* images. Defaults to {@code false}.

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

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1407,9 +1407,15 @@ class ScreenshotOptions {
14071407
public ScreenshotCaret caret;
14081408
/**
14091409
* Specify locators that should be masked when the screenshot is taken. Masked elements will be overlaid with a pink box
1410-
* {@code #FF00FF} that completely covers its bounding box.
1410+
* {@code #FF00FF} (customized by {@code maskColor}) that completely covers its bounding box.
14111411
*/
14121412
public List<Locator> mask;
1413+
/**
1414+
* Specify the color of the overlay box for masked elements, in <a
1415+
* href="https://developer.mozilla.org/en-US/docs/Web/CSS/color_value">CSS color format</a>. Default color is pink {@code
1416+
* #FF00FF}.
1417+
*/
1418+
public String maskColor;
14131419
/**
14141420
* Hides default white background and allows capturing screenshots with transparency. Not applicable to {@code jpeg}
14151421
* images. Defaults to {@code false}.
@@ -1468,12 +1474,21 @@ public ScreenshotOptions setCaret(ScreenshotCaret caret) {
14681474
}
14691475
/**
14701476
* Specify locators that should be masked when the screenshot is taken. Masked elements will be overlaid with a pink box
1471-
* {@code #FF00FF} that completely covers its bounding box.
1477+
* {@code #FF00FF} (customized by {@code maskColor}) that completely covers its bounding box.
14721478
*/
14731479
public ScreenshotOptions setMask(List<Locator> mask) {
14741480
this.mask = mask;
14751481
return this;
14761482
}
1483+
/**
1484+
* Specify the color of the overlay box for masked elements, in <a
1485+
* href="https://developer.mozilla.org/en-US/docs/Web/CSS/color_value">CSS color format</a>. Default color is pink {@code
1486+
* #FF00FF}.
1487+
*/
1488+
public ScreenshotOptions setMaskColor(String maskColor) {
1489+
this.maskColor = maskColor;
1490+
return this;
1491+
}
14771492
/**
14781493
* Hides default white background and allows capturing screenshots with transparency. Not applicable to {@code jpeg}
14791494
* images. Defaults to {@code false}.
@@ -2067,7 +2082,7 @@ public WaitForOptions setTimeout(double timeout) {
20672082
* }</pre>
20682083
*
20692084
* @param locator Additional locator to match.
2070-
* @since v1.33
2085+
* @since v1.34
20712086
*/
20722087
Locator and(Locator locator);
20732088
/**

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

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2407,9 +2407,15 @@ class ScreenshotOptions {
24072407
public Boolean fullPage;
24082408
/**
24092409
* Specify locators that should be masked when the screenshot is taken. Masked elements will be overlaid with a pink box
2410-
* {@code #FF00FF} that completely covers its bounding box.
2410+
* {@code #FF00FF} (customized by {@code maskColor}) that completely covers its bounding box.
24112411
*/
24122412
public List<Locator> mask;
2413+
/**
2414+
* Specify the color of the overlay box for masked elements, in <a
2415+
* href="https://developer.mozilla.org/en-US/docs/Web/CSS/color_value">CSS color format</a>. Default color is pink {@code
2416+
* #FF00FF}.
2417+
*/
2418+
public String maskColor;
24132419
/**
24142420
* Hides default white background and allows capturing screenshots with transparency. Not applicable to {@code jpeg}
24152421
* images. Defaults to {@code false}.
@@ -2489,12 +2495,21 @@ public ScreenshotOptions setFullPage(boolean fullPage) {
24892495
}
24902496
/**
24912497
* Specify locators that should be masked when the screenshot is taken. Masked elements will be overlaid with a pink box
2492-
* {@code #FF00FF} that completely covers its bounding box.
2498+
* {@code #FF00FF} (customized by {@code maskColor}) that completely covers its bounding box.
24932499
*/
24942500
public ScreenshotOptions setMask(List<Locator> mask) {
24952501
this.mask = mask;
24962502
return this;
24972503
}
2504+
/**
2505+
* Specify the color of the overlay box for masked elements, in <a
2506+
* href="https://developer.mozilla.org/en-US/docs/Web/CSS/color_value">CSS color format</a>. Default color is pink {@code
2507+
* #FF00FF}.
2508+
*/
2509+
public ScreenshotOptions setMaskColor(String maskColor) {
2510+
this.maskColor = maskColor;
2511+
return this;
2512+
}
24982513
/**
24992514
* Hides default white background and allows capturing screenshots with transparency. Not applicable to {@code jpeg}
25002515
* images. Defaults to {@code false}.

0 commit comments

Comments
 (0)