We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf7cd04 commit 940d4f8Copy full SHA for 940d4f8
java/src/org/openqa/selenium/support/locators/RelativeLocator.java
@@ -38,7 +38,7 @@
38
* position on the DOM. Elements are returned ordered by their proximity to
39
* the last anchor element used for finding them. As an example:
40
* <pre>
41
- * List<WebElement> elements = driver.findElements(withTagName("p").above(lowest));
+ * List<WebElement> elements = driver.findElements(with(tagName("p")).above(lowest));
42
* </pre>
43
* Would return all {@code p} elements above the {@link WebElement}
44
* {@code lowest} sorted by the proximity to {@code lowest}.
0 commit comments