org.openqa.selenium.support.pagefactory
Class ByAll
java.lang.Object
org.openqa.selenium.By
org.openqa.selenium.support.pagefactory.ByAll
public class ByAll
- extends By
Mechanism used to locate elements within a document using a series of lookups. This class will
find all DOM elements that matches any of the locators in sequence, e.g.
driver.findElements(new ByAll(by1, by2))
will find all elements that match by1 and then all elements that match by2.
This means that the list of elements returned may not be in document order.
|
Constructor Summary |
ByAll(By... bys)
|
ByAll
public ByAll(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 By
Copyright © 2013. All rights reserved.