public class ByChained extends By implements Serializable
driver.findElements(new ByChained(by1, by2))will find all elements that match by2 and appear under an element that matches by1.
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 ByChained(By... bys)
public WebElement findElement(SearchContext context)
findElement
in class By
public List<WebElement> findElements(SearchContext context)
findElements
in class By
Copyright © 2014. All rights reserved.