-
-
Save angiejones/060e21c9e30e7553c7fcb0780561782d to your computer and use it in GitHub Desktop.
Get List of Relative Locators in Selenium 4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
List<WebElement> relativeElements = driver.findElements( | |
withTagName("li"). | |
toLeftOf(By.id("pid3")). | |
toRightOf(By.id("pid1")) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment