@@ -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 /**
0 commit comments