org.openqa.selenium.support.pagefactory
Class ByChained
java.lang.Object
org.openqa.selenium.By
org.openqa.selenium.support.pagefactory.ByChained
public class ByChained
- extends By
Mechanism used to locate elements within a document using a series
of other lookups. This class will find all DOM elements that much each
of the locators in sequence, eg.
driver.findElements(new ByChained(by1, by2))
will find all elements that match by2 and appear under an element
that matches by1.
ByChained
public ByChained(By... bys)
findElement
public WebElement findElement(SearchContext context)
- Overrides:
findElement
in class By
findElements
public List<WebElement> findElements(SearchContext context)
- Specified by:
findElements
in class By
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2011. All Rights Reserved.