public class ElementListSupplierLocator
extends java.lang.Object
implements org.openqa.selenium.support.pagefactory.ElementLocator
Supplier of list of WebElement.| Constructor and Description |
|---|
ElementListSupplierLocator(java.util.List<org.openqa.selenium.WebElement> elements)
Creates a new element list supplier locator
|
ElementListSupplierLocator(java.util.function.Supplier<java.util.List<org.openqa.selenium.WebElement>> elementsSupplier)
Creates a new element list supplier locator
|
| Modifier and Type | Method and Description |
|---|---|
org.openqa.selenium.WebElement |
findElement() |
java.util.List<org.openqa.selenium.WebElement> |
findElements() |
java.lang.String |
toString() |
public ElementListSupplierLocator(java.util.List<org.openqa.selenium.WebElement> elements)
elements - element list instancepublic ElementListSupplierLocator(java.util.function.Supplier<java.util.List<org.openqa.selenium.WebElement>> elementsSupplier)
elementsSupplier - element list supplierpublic org.openqa.selenium.WebElement findElement()
findElement in interface org.openqa.selenium.support.pagefactory.ElementLocatorpublic java.util.List<org.openqa.selenium.WebElement> findElements()
findElements in interface org.openqa.selenium.support.pagefactory.ElementLocatorpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2018 FluentLenium. All Rights Reserved.