Class RelativeLocator.RelativeBy
java.lang.Object
org.openqa.selenium.By
org.openqa.selenium.support.locators.RelativeLocator.RelativeBy
- All Implemented Interfaces:
By.Remotable
- Enclosing class:
- RelativeLocator
-
Nested Class Summary
Nested classes/interfaces inherited from class org.openqa.selenium.By
By.ByClassName, By.ByCssSelector, By.ById, By.ByLinkText, By.ByName, By.ByPartialLinkText, By.ByTagName, By.ByXPath, By.Remotable
Nested classes/interfaces inherited from interface org.openqa.selenium.By.Remotable
By.Remotable.Parameters
-
Method Summary
Modifier and TypeMethodDescriptionabove
(WebElement element) below
(WebElement element) findElements
(SearchContext context) Find many elements.near
(WebElement element) near
(WebElement element, int atMostDistanceInPixels) straightAbove
(By locator) straightAbove
(WebElement element) straightBelow
(By locator) straightBelow
(WebElement element) straightLeftOf
(By locator) straightLeftOf
(WebElement element) straightRightOf
(By locator) straightRightOf
(WebElement element) toLeftOf
(WebElement element) toRightOf
(WebElement element) Methods inherited from class org.openqa.selenium.By
className, cssSelector, equals, findElement, getJavascriptExecutor, getWebDriver, hashCode, id, linkText, name, partialLinkText, tagName, toString, xpath
-
Method Details
-
above
-
above
-
below
-
below
-
toLeftOf
-
toLeftOf
-
toRightOf
-
toRightOf
-
straightAbove
-
straightAbove
-
straightBelow
-
straightBelow
-
straightLeftOf
-
straightLeftOf
-
straightRightOf
-
straightRightOf
-
near
-
near
-
near
-
near
-
findElements
Description copied from class:By
Find many elements.- Specified by:
findElements
in classBy
- Parameters:
context
- A context to use to find the elements.- Returns:
- A list of WebElements matching the selector.
-
getRemoteParameters
- Specified by:
getRemoteParameters
in interfaceBy.Remotable
-