public class ByAll extends By
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.
By.ByClassName, By.ByCssSelector, By.ById, By.ByLinkText, By.ByName, By.ByPartialLinkText, By.ByTagName, By.ByXPath| Modifier and Type | Method and Description |
|---|---|
WebElement |
findElement(SearchContext context) |
List<WebElement> |
findElements(SearchContext context) |
String |
toString() |
public ByAll(By... bys)
public WebElement findElement(SearchContext context)
findElement in class Bypublic List<WebElement> findElements(SearchContext context)
findElements in class ByCopyright © 2013. All Rights Reserved.