Skip to content

Commit 15eefc5

Browse files
authored
feat: roll beta driver, remove layout selectors (#926)
1 parent abf245c commit 15eefc5

File tree

13 files changed

+239
-633
lines changed

13 files changed

+239
-633
lines changed

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

Lines changed: 0 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -1218,22 +1218,6 @@ public IsVisibleOptions setTimeout(double timeout) {
12181218
}
12191219
}
12201220
class LocatorOptions {
1221-
/**
1222-
* Matches elements that are above any of the elements matching the inner locator, at any horizontal position. Inner
1223-
* locator is queried against the same root as the outer one. More details in <a
1224-
* href="https://playwright.dev/java/docs/selectors#selecting-elements-based-on-layout">layout selectors</a> guide.
1225-
*
1226-
* <p> Note that outer and inner locators must belong to the same frame. Inner locator must not contain {@code FrameLocator}s.
1227-
*/
1228-
public Locator above;
1229-
/**
1230-
* Matches elements that are below any of the elements matching the inner locator, at any horizontal position. Inner
1231-
* locator is queried against the same root as the outer one. More details in <a
1232-
* href="https://playwright.dev/java/docs/selectors#selecting-elements-based-on-layout">layout selectors</a> guide.
1233-
*
1234-
* <p> Note that outer and inner locators must belong to the same frame. Inner locator must not contain {@code FrameLocator}s.
1235-
*/
1236-
public Locator below;
12371221
/**
12381222
* Matches elements containing an element that matches an inner locator. Inner locator is queried against the outer one.
12391223
* For example, {@code article} that has {@code text=Playwright} matches {@code <article><div>Playwright</div></article>}.
@@ -1247,53 +1231,7 @@ class LocatorOptions {
12471231
* {@code <article><div>Playwright</div></article>}.
12481232
*/
12491233
public Object hasText;
1250-
/**
1251-
* Matches elements that are to the left of any element matching the inner locator, at any vertical position. Inner locator
1252-
* is queried against the same root as the outer one. More details in <a
1253-
* href="https://playwright.dev/java/docs/selectors#selecting-elements-based-on-layout">layout selectors</a> guide.
1254-
*
1255-
* <p> Note that outer and inner locators must belong to the same frame. Inner locator must not contain {@code FrameLocator}s.
1256-
*/
1257-
public Locator leftOf;
1258-
/**
1259-
* Matches elements that are near (<= 50 css pixels) any of the elements matching the inner locator. Inner locator is
1260-
* queried against the same root as the outer one. More details in <a
1261-
* href="https://playwright.dev/java/docs/selectors#selecting-elements-based-on-layout">layout selectors</a> guide.
1262-
*
1263-
* <p> Note that outer and inner locators must belong to the same frame. Inner locator must not contain {@code FrameLocator}s.
1264-
*/
1265-
public Locator near;
1266-
/**
1267-
* Matches elements that are to the right of any element matching the inner locator, at any vertical position. Inner
1268-
* locator is queried against the same root as the outer one. More details in <a
1269-
* href="https://playwright.dev/java/docs/selectors#selecting-elements-based-on-layout">layout selectors</a> guide.
1270-
*
1271-
* <p> Note that outer and inner locators must belong to the same frame. Inner locator must not contain {@code FrameLocator}s.
1272-
*/
1273-
public Locator rightOf;
12741234

1275-
/**
1276-
* Matches elements that are above any of the elements matching the inner locator, at any horizontal position. Inner
1277-
* locator is queried against the same root as the outer one. More details in <a
1278-
* href="https://playwright.dev/java/docs/selectors#selecting-elements-based-on-layout">layout selectors</a> guide.
1279-
*
1280-
* <p> Note that outer and inner locators must belong to the same frame. Inner locator must not contain {@code FrameLocator}s.
1281-
*/
1282-
public LocatorOptions setAbove(Locator above) {
1283-
this.above = above;
1284-
return this;
1285-
}
1286-
/**
1287-
* Matches elements that are below any of the elements matching the inner locator, at any horizontal position. Inner
1288-
* locator is queried against the same root as the outer one. More details in <a
1289-
* href="https://playwright.dev/java/docs/selectors#selecting-elements-based-on-layout">layout selectors</a> guide.
1290-
*
1291-
* <p> Note that outer and inner locators must belong to the same frame. Inner locator must not contain {@code FrameLocator}s.
1292-
*/
1293-
public LocatorOptions setBelow(Locator below) {
1294-
this.below = below;
1295-
return this;
1296-
}
12971235
/**
12981236
* Matches elements containing an element that matches an inner locator. Inner locator is queried against the outer one.
12991237
* For example, {@code article} that has {@code text=Playwright} matches {@code <article><div>Playwright</div></article>}.
@@ -1322,39 +1260,6 @@ public LocatorOptions setHasText(Pattern hasText) {
13221260
this.hasText = hasText;
13231261
return this;
13241262
}
1325-
/**
1326-
* Matches elements that are to the left of any element matching the inner locator, at any vertical position. Inner locator
1327-
* is queried against the same root as the outer one. More details in <a
1328-
* href="https://playwright.dev/java/docs/selectors#selecting-elements-based-on-layout">layout selectors</a> guide.
1329-
*
1330-
* <p> Note that outer and inner locators must belong to the same frame. Inner locator must not contain {@code FrameLocator}s.
1331-
*/
1332-
public LocatorOptions setLeftOf(Locator leftOf) {
1333-
this.leftOf = leftOf;
1334-
return this;
1335-
}
1336-
/**
1337-
* Matches elements that are near (<= 50 css pixels) any of the elements matching the inner locator. Inner locator is
1338-
* queried against the same root as the outer one. More details in <a
1339-
* href="https://playwright.dev/java/docs/selectors#selecting-elements-based-on-layout">layout selectors</a> guide.
1340-
*
1341-
* <p> Note that outer and inner locators must belong to the same frame. Inner locator must not contain {@code FrameLocator}s.
1342-
*/
1343-
public LocatorOptions setNear(Locator near) {
1344-
this.near = near;
1345-
return this;
1346-
}
1347-
/**
1348-
* Matches elements that are to the right of any element matching the inner locator, at any vertical position. Inner
1349-
* locator is queried against the same root as the outer one. More details in <a
1350-
* href="https://playwright.dev/java/docs/selectors#selecting-elements-based-on-layout">layout selectors</a> guide.
1351-
*
1352-
* <p> Note that outer and inner locators must belong to the same frame. Inner locator must not contain {@code FrameLocator}s.
1353-
*/
1354-
public LocatorOptions setRightOf(Locator rightOf) {
1355-
this.rightOf = rightOf;
1356-
return this;
1357-
}
13581263
}
13591264
class PressOptions {
13601265
/**

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

Lines changed: 0 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -49,22 +49,6 @@
4949
*/
5050
public interface FrameLocator {
5151
class LocatorOptions {
52-
/**
53-
* Matches elements that are above any of the elements matching the inner locator, at any horizontal position. Inner
54-
* locator is queried against the same root as the outer one. More details in <a
55-
* href="https://playwright.dev/java/docs/selectors#selecting-elements-based-on-layout">layout selectors</a> guide.
56-
*
57-
* <p> Note that outer and inner locators must belong to the same frame. Inner locator must not contain {@code FrameLocator}s.
58-
*/
59-
public Locator above;
60-
/**
61-
* Matches elements that are below any of the elements matching the inner locator, at any horizontal position. Inner
62-
* locator is queried against the same root as the outer one. More details in <a
63-
* href="https://playwright.dev/java/docs/selectors#selecting-elements-based-on-layout">layout selectors</a> guide.
64-
*
65-
* <p> Note that outer and inner locators must belong to the same frame. Inner locator must not contain {@code FrameLocator}s.
66-
*/
67-
public Locator below;
6852
/**
6953
* Matches elements containing an element that matches an inner locator. Inner locator is queried against the outer one.
7054
* For example, {@code article} that has {@code text=Playwright} matches {@code <article><div>Playwright</div></article>}.
@@ -78,53 +62,7 @@ class LocatorOptions {
7862
* {@code <article><div>Playwright</div></article>}.
7963
*/
8064
public Object hasText;
81-
/**
82-
* Matches elements that are to the left of any element matching the inner locator, at any vertical position. Inner locator
83-
* is queried against the same root as the outer one. More details in <a
84-
* href="https://playwright.dev/java/docs/selectors#selecting-elements-based-on-layout">layout selectors</a> guide.
85-
*
86-
* <p> Note that outer and inner locators must belong to the same frame. Inner locator must not contain {@code FrameLocator}s.
87-
*/
88-
public Locator leftOf;
89-
/**
90-
* Matches elements that are near (<= 50 css pixels) any of the elements matching the inner locator. Inner locator is
91-
* queried against the same root as the outer one. More details in <a
92-
* href="https://playwright.dev/java/docs/selectors#selecting-elements-based-on-layout">layout selectors</a> guide.
93-
*
94-
* <p> Note that outer and inner locators must belong to the same frame. Inner locator must not contain {@code FrameLocator}s.
95-
*/
96-
public Locator near;
97-
/**
98-
* Matches elements that are to the right of any element matching the inner locator, at any vertical position. Inner
99-
* locator is queried against the same root as the outer one. More details in <a
100-
* href="https://playwright.dev/java/docs/selectors#selecting-elements-based-on-layout">layout selectors</a> guide.
101-
*
102-
* <p> Note that outer and inner locators must belong to the same frame. Inner locator must not contain {@code FrameLocator}s.
103-
*/
104-
public Locator rightOf;
10565

106-
/**
107-
* Matches elements that are above any of the elements matching the inner locator, at any horizontal position. Inner
108-
* locator is queried against the same root as the outer one. More details in <a
109-
* href="https://playwright.dev/java/docs/selectors#selecting-elements-based-on-layout">layout selectors</a> guide.
110-
*
111-
* <p> Note that outer and inner locators must belong to the same frame. Inner locator must not contain {@code FrameLocator}s.
112-
*/
113-
public LocatorOptions setAbove(Locator above) {
114-
this.above = above;
115-
return this;
116-
}
117-
/**
118-
* Matches elements that are below any of the elements matching the inner locator, at any horizontal position. Inner
119-
* locator is queried against the same root as the outer one. More details in <a
120-
* href="https://playwright.dev/java/docs/selectors#selecting-elements-based-on-layout">layout selectors</a> guide.
121-
*
122-
* <p> Note that outer and inner locators must belong to the same frame. Inner locator must not contain {@code FrameLocator}s.
123-
*/
124-
public LocatorOptions setBelow(Locator below) {
125-
this.below = below;
126-
return this;
127-
}
12866
/**
12967
* Matches elements containing an element that matches an inner locator. Inner locator is queried against the outer one.
13068
* For example, {@code article} that has {@code text=Playwright} matches {@code <article><div>Playwright</div></article>}.
@@ -153,39 +91,6 @@ public LocatorOptions setHasText(Pattern hasText) {
15391
this.hasText = hasText;
15492
return this;
15593
}
156-
/**
157-
* Matches elements that are to the left of any element matching the inner locator, at any vertical position. Inner locator
158-
* is queried against the same root as the outer one. More details in <a
159-
* href="https://playwright.dev/java/docs/selectors#selecting-elements-based-on-layout">layout selectors</a> guide.
160-
*
161-
* <p> Note that outer and inner locators must belong to the same frame. Inner locator must not contain {@code FrameLocator}s.
162-
*/
163-
public LocatorOptions setLeftOf(Locator leftOf) {
164-
this.leftOf = leftOf;
165-
return this;
166-
}
167-
/**
168-
* Matches elements that are near (<= 50 css pixels) any of the elements matching the inner locator. Inner locator is
169-
* queried against the same root as the outer one. More details in <a
170-
* href="https://playwright.dev/java/docs/selectors#selecting-elements-based-on-layout">layout selectors</a> guide.
171-
*
172-
* <p> Note that outer and inner locators must belong to the same frame. Inner locator must not contain {@code FrameLocator}s.
173-
*/
174-
public LocatorOptions setNear(Locator near) {
175-
this.near = near;
176-
return this;
177-
}
178-
/**
179-
* Matches elements that are to the right of any element matching the inner locator, at any vertical position. Inner
180-
* locator is queried against the same root as the outer one. More details in <a
181-
* href="https://playwright.dev/java/docs/selectors#selecting-elements-based-on-layout">layout selectors</a> guide.
182-
*
183-
* <p> Note that outer and inner locators must belong to the same frame. Inner locator must not contain {@code FrameLocator}s.
184-
*/
185-
public LocatorOptions setRightOf(Locator rightOf) {
186-
this.rightOf = rightOf;
187-
return this;
188-
}
18994
}
19095
/**
19196
* Returns locator to the first matching frame.

0 commit comments

Comments
 (0)