Skip to content

Commit 940d4f8

Browse files
authored
[java] Fix reference to removed withTagName method in RelativeLocator class comment (#9930)
1 parent bf7cd04 commit 940d4f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/src/org/openqa/selenium/support/locators/RelativeLocator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
* position on the DOM. Elements are returned ordered by their proximity to
3939
* the last anchor element used for finding them. As an example:
4040
* <pre>
41-
* List<WebElement> elements = driver.findElements(withTagName("p").above(lowest));
41+
* List<WebElement> elements = driver.findElements(with(tagName("p")).above(lowest));
4242
* </pre>
4343
* Would return all {@code p} elements above the {@link WebElement}
4444
* {@code lowest} sorted by the proximity to {@code lowest}.

0 commit comments

Comments
 (0)