Package org.fluentlenium.core.proxy
Class ElementListSupplierLocator
- java.lang.Object
-
- org.fluentlenium.core.proxy.ElementListSupplierLocator
-
- All Implemented Interfaces:
org.openqa.selenium.support.pagefactory.ElementLocator
- Direct Known Subclasses:
ElementListInstanceLocator
public class ElementListSupplierLocator extends Object implements org.openqa.selenium.support.pagefactory.ElementLocator
Element locator implemented by aSupplier
of list ofWebElement
.
-
-
Constructor Summary
Constructors Constructor Description ElementListSupplierLocator(Supplier<List<org.openqa.selenium.WebElement>> elementsSupplier)
Creates a new element list supplier locatorElementListSupplierLocator(List<org.openqa.selenium.WebElement> elements)
Creates a new element list supplier locator
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.openqa.selenium.WebElement
findElement()
List<org.openqa.selenium.WebElement>
findElements()
String
toString()
-
-
-
Constructor Detail
-
ElementListSupplierLocator
public ElementListSupplierLocator(List<org.openqa.selenium.WebElement> elements)
Creates a new element list supplier locator- Parameters:
elements
- element list instance
-
-
Method Detail
-
findElement
public org.openqa.selenium.WebElement findElement()
- Specified by:
findElement
in interfaceorg.openqa.selenium.support.pagefactory.ElementLocator
-
findElements
public List<org.openqa.selenium.WebElement> findElements()
- Specified by:
findElements
in interfaceorg.openqa.selenium.support.pagefactory.ElementLocator
-
-