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
public static class RelativeLocator.RelativeBy extends By implements By.Remotable
-
-
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RelativeLocator.RelativeBy
above(By locator)
RelativeLocator.RelativeBy
above(WebElement element)
RelativeLocator.RelativeBy
below(By locator)
RelativeLocator.RelativeBy
below(WebElement element)
java.util.List<WebElement>
findElements(SearchContext context)
Find many elements.By.Remotable.Parameters
getRemoteParameters()
RelativeLocator.RelativeBy
near(By locator)
RelativeLocator.RelativeBy
near(By locator, int atMostDistanceInPixels)
RelativeLocator.RelativeBy
near(WebElement element)
RelativeLocator.RelativeBy
near(WebElement element, int atMostDistanceInPixels)
RelativeLocator.RelativeBy
toLeftOf(By locator)
RelativeLocator.RelativeBy
toLeftOf(WebElement element)
RelativeLocator.RelativeBy
toRightOf(By locator)
RelativeLocator.RelativeBy
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 Detail
-
above
public RelativeLocator.RelativeBy above(WebElement element)
-
above
public RelativeLocator.RelativeBy above(By locator)
-
below
public RelativeLocator.RelativeBy below(WebElement element)
-
below
public RelativeLocator.RelativeBy below(By locator)
-
toLeftOf
public RelativeLocator.RelativeBy toLeftOf(WebElement element)
-
toLeftOf
public RelativeLocator.RelativeBy toLeftOf(By locator)
-
toRightOf
public RelativeLocator.RelativeBy toRightOf(WebElement element)
-
toRightOf
public RelativeLocator.RelativeBy toRightOf(By locator)
-
near
public RelativeLocator.RelativeBy near(WebElement element)
-
near
public RelativeLocator.RelativeBy near(WebElement element, int atMostDistanceInPixels)
-
near
public RelativeLocator.RelativeBy near(By locator)
-
near
public RelativeLocator.RelativeBy near(By locator, int atMostDistanceInPixels)
-
findElements
public java.util.List<WebElement> findElements(SearchContext context)
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
public By.Remotable.Parameters getRemoteParameters()
- Specified by:
getRemoteParameters
in interfaceBy.Remotable
-
-