Example usage for org.openqa.selenium.support.pagefactory ByAll ByAll

List of usage examples for org.openqa.selenium.support.pagefactory ByAll ByAll

Introduction

In this page you can find the example usage for org.openqa.selenium.support.pagefactory ByAll ByAll.

Prototype

public ByAll(By... bys) 

Source Link

Usage

From source file:com.jaeksoft.searchlib.parser.htmlParser.WebDriverHtmlNode.java

License:Open Source License

private List<WebElement> getAllWebElements(String... tags) {
    By.ByTagName[] byTagNames = getByTagNameArray(tags);
    if (byTagNames == null)
        return null;
    return node.findElements(new ByAll(byTagNames));
}

From source file:com.ts.commons.TSPageFactory.TSAnnotations.java

License:Apache License

protected By buildBysFromFindByOneOf(FindAll findBys) {
    assertValidFindAll(findBys);/*from  w w  w .  j av  a 2 s  .  c  o  m*/

    FindBy[] findByArray = (FindBy[]) findBys.value();
    By[] byArray = new By[findByArray.length];
    for (int i = 0; i < findByArray.length; i++) {
        byArray[i] = buildByFromFindBy(findByArray[i]);
    }

    return (By) ((org.openqa.selenium.By) new ByAll(byArray));
}