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.
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
ByChained
public ByChained(By... bys)
findElement
public WebElement findElement(SearchContext context)
- Overrides:
findElement
in class By
findElements
public java.util.List<WebElement> findElements(SearchContext context)
- Specified by:
findElements
in class By
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2010. All Rights Reserved.