Skip to content

Commit 7e6f98c

Browse files
authored
chore: roll driver to 1.41 beta (#1449)
1 parent e889b20 commit 7e6f98c

File tree

6 files changed

+122
-55
lines changed

6 files changed

+122
-55
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 -->121.0.6167.16<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
14+
| Chromium <!-- GEN:chromium-version -->121.0.6167.57<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
1515
| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> ||||
16-
| Firefox <!-- GEN:firefox-version -->120.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
16+
| Firefox <!-- GEN:firefox-version -->121.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/ElementHandle.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2546,8 +2546,7 @@ default void uncheck() {
25462546
* <li> {@code "visible"} Wait until the element is <a
25472547
* href="https://playwright.dev/java/docs/actionability#visible">visible</a>.</li>
25482548
* <li> {@code "hidden"} Wait until the element is <a href="https://playwright.dev/java/docs/actionability#visible">not
2549-
* visible</a> or <a href="https://playwright.dev/java/docs/actionability#attached">not attached</a>. Note that waiting for
2550-
* hidden does not throw when the element detaches.</li>
2549+
* visible</a> or not attached. Note that waiting for hidden does not throw when the element detaches.</li>
25512550
* <li> {@code "stable"} Wait until the element is both <a
25522551
* href="https://playwright.dev/java/docs/actionability#visible">visible</a> and <a
25532552
* href="https://playwright.dev/java/docs/actionability#stable">stable</a>.</li>
@@ -2577,8 +2576,7 @@ default void waitForElementState(ElementState state) {
25772576
* <li> {@code "visible"} Wait until the element is <a
25782577
* href="https://playwright.dev/java/docs/actionability#visible">visible</a>.</li>
25792578
* <li> {@code "hidden"} Wait until the element is <a href="https://playwright.dev/java/docs/actionability#visible">not
2580-
* visible</a> or <a href="https://playwright.dev/java/docs/actionability#attached">not attached</a>. Note that waiting for
2581-
* hidden does not throw when the element detaches.</li>
2579+
* visible</a> or not attached. Note that waiting for hidden does not throw when the element detaches.</li>
25822580
* <li> {@code "stable"} Wait until the element is both <a
25832581
* href="https://playwright.dev/java/docs/actionability#visible">visible</a> and <a
25842582
* href="https://playwright.dev/java/docs/actionability#stable">stable</a>.</li>

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

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@
3838
public interface Tracing {
3939
class StartOptions {
4040
/**
41-
* If specified, the trace is going to be saved into the file with the given name inside the {@code tracesDir} folder
42-
* specified in {@link BrowserType#launch BrowserType.launch()}.
41+
* If specified, intermediate trace files are going to be saved into the files with the given name prefix inside the {@code
42+
* tracesDir} folder specified in {@link BrowserType#launch BrowserType.launch()}. To specify the final trace zip file
43+
* name, you need to pass {@code path} option to {@link Tracing#stop Tracing.stop()} instead.
4344
*/
4445
public String name;
4546
/**
@@ -66,8 +67,9 @@ class StartOptions {
6667
public String title;
6768

6869
/**
69-
* If specified, the trace is going to be saved into the file with the given name inside the {@code tracesDir} folder
70-
* specified in {@link BrowserType#launch BrowserType.launch()}.
70+
* If specified, intermediate trace files are going to be saved into the files with the given name prefix inside the {@code
71+
* tracesDir} folder specified in {@link BrowserType#launch BrowserType.launch()}. To specify the final trace zip file
72+
* name, you need to pass {@code path} option to {@link Tracing#stop Tracing.stop()} instead.
7173
*/
7274
public StartOptions setName(String name) {
7375
this.name = name;
@@ -110,8 +112,9 @@ public StartOptions setTitle(String title) {
110112
}
111113
class StartChunkOptions {
112114
/**
113-
* If specified, the trace is going to be saved into the file with the given name inside the {@code tracesDir} folder
114-
* specified in {@link BrowserType#launch BrowserType.launch()}.
115+
* If specified, intermediate trace files are going to be saved into the files with the given name prefix inside the {@code
116+
* tracesDir} folder specified in {@link BrowserType#launch BrowserType.launch()}. To specify the final trace zip file
117+
* name, you need to pass {@code path} option to {@link Tracing#stopChunk Tracing.stopChunk()} instead.
115118
*/
116119
public String name;
117120
/**
@@ -120,8 +123,9 @@ class StartChunkOptions {
120123
public String title;
121124

122125
/**
123-
* If specified, the trace is going to be saved into the file with the given name inside the {@code tracesDir} folder
124-
* specified in {@link BrowserType#launch BrowserType.launch()}.
126+
* If specified, intermediate trace files are going to be saved into the files with the given name prefix inside the {@code
127+
* tracesDir} folder specified in {@link BrowserType#launch BrowserType.launch()}. To specify the final trace zip file
128+
* name, you need to pass {@code path} option to {@link Tracing#stopChunk Tracing.stopChunk()} instead.
125129
*/
126130
public StartChunkOptions setName(String name) {
127131
this.name = name;

playwright/src/main/java/com/microsoft/playwright/assertions/LocatorAssertions.java

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -427,8 +427,8 @@ public HasValuesOptions setTimeout(double timeout) {
427427
*/
428428
LocatorAssertions not();
429429
/**
430-
* Ensures that {@code Locator} points to an <a href="https://playwright.dev/java/docs/actionability#attached">attached</a>
431-
* DOM node.
430+
* Ensures that {@code Locator} points to an element that is <a
431+
* href="https://developer.mozilla.org/en-US/docs/Web/API/Node/isConnected">connected</a> to a Document or a ShadowRoot.
432432
*
433433
* <p> **Usage**
434434
* <pre>{@code
@@ -441,8 +441,8 @@ default void isAttached() {
441441
isAttached(null);
442442
}
443443
/**
444-
* Ensures that {@code Locator} points to an <a href="https://playwright.dev/java/docs/actionability#attached">attached</a>
445-
* DOM node.
444+
* Ensures that {@code Locator} points to an element that is <a
445+
* href="https://developer.mozilla.org/en-US/docs/Web/API/Node/isConnected">connected</a> to a Document or a ShadowRoot.
446446
*
447447
* <p> **Usage**
448448
* <pre>{@code
@@ -671,8 +671,8 @@ default void isInViewport() {
671671
*/
672672
void isInViewport(IsInViewportOptions options);
673673
/**
674-
* Ensures that {@code Locator} points to an <a href="https://playwright.dev/java/docs/actionability#attached">attached</a>
675-
* and <a href="https://playwright.dev/java/docs/actionability#visible">visible</a> DOM node.
674+
* Ensures that {@code Locator} points to an attached and <a
675+
* href="https://playwright.dev/java/docs/actionability#visible">visible</a> DOM node.
676676
*
677677
* <p> To check that at least one element from the list is visible, use {@link Locator#first Locator.first()}.
678678
*
@@ -698,8 +698,8 @@ default void isVisible() {
698698
isVisible(null);
699699
}
700700
/**
701-
* Ensures that {@code Locator} points to an <a href="https://playwright.dev/java/docs/actionability#attached">attached</a>
702-
* and <a href="https://playwright.dev/java/docs/actionability#visible">visible</a> DOM node.
701+
* Ensures that {@code Locator} points to an attached and <a
702+
* href="https://playwright.dev/java/docs/actionability#visible">visible</a> DOM node.
703703
*
704704
* <p> To check that at least one element from the list is visible, use {@link Locator#first Locator.first()}.
705705
*
@@ -723,8 +723,8 @@ default void isVisible() {
723723
*/
724724
void isVisible(IsVisibleOptions options);
725725
/**
726-
* Ensures the {@code Locator} points to an element that contains the given text. You can use regular expressions for the
727-
* value as well.
726+
* Ensures the {@code Locator} points to an element that contains the given text. All nested elements will be considered
727+
* when computing the text content of the element. You can use regular expressions for the value as well.
728728
*
729729
* <p> **Details**
730730
*
@@ -768,8 +768,8 @@ default void containsText(String expected) {
768768
containsText(expected, null);
769769
}
770770
/**
771-
* Ensures the {@code Locator} points to an element that contains the given text. You can use regular expressions for the
772-
* value as well.
771+
* Ensures the {@code Locator} points to an element that contains the given text. All nested elements will be considered
772+
* when computing the text content of the element. You can use regular expressions for the value as well.
773773
*
774774
* <p> **Details**
775775
*
@@ -811,8 +811,8 @@ default void containsText(String expected) {
811811
*/
812812
void containsText(String expected, ContainsTextOptions options);
813813
/**
814-
* Ensures the {@code Locator} points to an element that contains the given text. You can use regular expressions for the
815-
* value as well.
814+
* Ensures the {@code Locator} points to an element that contains the given text. All nested elements will be considered
815+
* when computing the text content of the element. You can use regular expressions for the value as well.
816816
*
817817
* <p> **Details**
818818
*
@@ -856,8 +856,8 @@ default void containsText(Pattern expected) {
856856
containsText(expected, null);
857857
}
858858
/**
859-
* Ensures the {@code Locator} points to an element that contains the given text. You can use regular expressions for the
860-
* value as well.
859+
* Ensures the {@code Locator} points to an element that contains the given text. All nested elements will be considered
860+
* when computing the text content of the element. You can use regular expressions for the value as well.
861861
*
862862
* <p> **Details**
863863
*
@@ -899,8 +899,8 @@ default void containsText(Pattern expected) {
899899
*/
900900
void containsText(Pattern expected, ContainsTextOptions options);
901901
/**
902-
* Ensures the {@code Locator} points to an element that contains the given text. You can use regular expressions for the
903-
* value as well.
902+
* Ensures the {@code Locator} points to an element that contains the given text. All nested elements will be considered
903+
* when computing the text content of the element. You can use regular expressions for the value as well.
904904
*
905905
* <p> **Details**
906906
*
@@ -944,8 +944,8 @@ default void containsText(String[] expected) {
944944
containsText(expected, null);
945945
}
946946
/**
947-
* Ensures the {@code Locator} points to an element that contains the given text. You can use regular expressions for the
948-
* value as well.
947+
* Ensures the {@code Locator} points to an element that contains the given text. All nested elements will be considered
948+
* when computing the text content of the element. You can use regular expressions for the value as well.
949949
*
950950
* <p> **Details**
951951
*
@@ -987,8 +987,8 @@ default void containsText(String[] expected) {
987987
*/
988988
void containsText(String[] expected, ContainsTextOptions options);
989989
/**
990-
* Ensures the {@code Locator} points to an element that contains the given text. You can use regular expressions for the
991-
* value as well.
990+
* Ensures the {@code Locator} points to an element that contains the given text. All nested elements will be considered
991+
* when computing the text content of the element. You can use regular expressions for the value as well.
992992
*
993993
* <p> **Details**
994994
*
@@ -1032,8 +1032,8 @@ default void containsText(Pattern[] expected) {
10321032
containsText(expected, null);
10331033
}
10341034
/**
1035-
* Ensures the {@code Locator} points to an element that contains the given text. You can use regular expressions for the
1036-
* value as well.
1035+
* Ensures the {@code Locator} points to an element that contains the given text. All nested elements will be considered
1036+
* when computing the text content of the element. You can use regular expressions for the value as well.
10371037
*
10381038
* <p> **Details**
10391039
*
@@ -1455,8 +1455,8 @@ default void hasJSProperty(String name, Object value) {
14551455
*/
14561456
void hasJSProperty(String name, Object value, HasJSPropertyOptions options);
14571457
/**
1458-
* Ensures the {@code Locator} points to an element with the given text. You can use regular expressions for the value as
1459-
* well.
1458+
* Ensures the {@code Locator} points to an element with the given text. All nested elements will be considered when
1459+
* computing the text content of the element. You can use regular expressions for the value as well.
14601460
*
14611461
* <p> **Details**
14621462
*
@@ -1500,8 +1500,8 @@ default void hasText(String expected) {
15001500
hasText(expected, null);
15011501
}
15021502
/**
1503-
* Ensures the {@code Locator} points to an element with the given text. You can use regular expressions for the value as
1504-
* well.
1503+
* Ensures the {@code Locator} points to an element with the given text. All nested elements will be considered when
1504+
* computing the text content of the element. You can use regular expressions for the value as well.
15051505
*
15061506
* <p> **Details**
15071507
*
@@ -1543,8 +1543,8 @@ default void hasText(String expected) {
15431543
*/
15441544
void hasText(String expected, HasTextOptions options);
15451545
/**
1546-
* Ensures the {@code Locator} points to an element with the given text. You can use regular expressions for the value as
1547-
* well.
1546+
* Ensures the {@code Locator} points to an element with the given text. All nested elements will be considered when
1547+
* computing the text content of the element. You can use regular expressions for the value as well.
15481548
*
15491549
* <p> **Details**
15501550
*
@@ -1588,8 +1588,8 @@ default void hasText(Pattern expected) {
15881588
hasText(expected, null);
15891589
}
15901590
/**
1591-
* Ensures the {@code Locator} points to an element with the given text. You can use regular expressions for the value as
1592-
* well.
1591+
* Ensures the {@code Locator} points to an element with the given text. All nested elements will be considered when
1592+
* computing the text content of the element. You can use regular expressions for the value as well.
15931593
*
15941594
* <p> **Details**
15951595
*
@@ -1631,8 +1631,8 @@ default void hasText(Pattern expected) {
16311631
*/
16321632
void hasText(Pattern expected, HasTextOptions options);
16331633
/**
1634-
* Ensures the {@code Locator} points to an element with the given text. You can use regular expressions for the value as
1635-
* well.
1634+
* Ensures the {@code Locator} points to an element with the given text. All nested elements will be considered when
1635+
* computing the text content of the element. You can use regular expressions for the value as well.
16361636
*
16371637
* <p> **Details**
16381638
*
@@ -1676,8 +1676,8 @@ default void hasText(String[] expected) {
16761676
hasText(expected, null);
16771677
}
16781678
/**
1679-
* Ensures the {@code Locator} points to an element with the given text. You can use regular expressions for the value as
1680-
* well.
1679+
* Ensures the {@code Locator} points to an element with the given text. All nested elements will be considered when
1680+
* computing the text content of the element. You can use regular expressions for the value as well.
16811681
*
16821682
* <p> **Details**
16831683
*
@@ -1719,8 +1719,8 @@ default void hasText(String[] expected) {
17191719
*/
17201720
void hasText(String[] expected, HasTextOptions options);
17211721
/**
1722-
* Ensures the {@code Locator} points to an element with the given text. You can use regular expressions for the value as
1723-
* well.
1722+
* Ensures the {@code Locator} points to an element with the given text. All nested elements will be considered when
1723+
* computing the text content of the element. You can use regular expressions for the value as well.
17241724
*
17251725
* <p> **Details**
17261726
*
@@ -1764,8 +1764,8 @@ default void hasText(Pattern[] expected) {
17641764
hasText(expected, null);
17651765
}
17661766
/**
1767-
* Ensures the {@code Locator} points to an element with the given text. You can use regular expressions for the value as
1768-
* well.
1767+
* Ensures the {@code Locator} points to an element with the given text. All nested elements will be considered when
1768+
* computing the text content of the element. You can use regular expressions for the value as well.
17691769
*
17701770
* <p> **Details**
17711771
*

0 commit comments

Comments
 (0)