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 java.lang.Object implements org.openqa.selenium.support.pagefactory.ElementLocatorElement locator implemented by aSupplierof list ofWebElement.
-
-
Constructor Summary
Constructors Constructor Description ElementListSupplierLocator(java.util.function.Supplier<java.util.List<org.openqa.selenium.WebElement>> elementsSupplier)Creates a new element list supplier locatorElementListSupplierLocator(java.util.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.WebElementfindElement()java.util.List<org.openqa.selenium.WebElement>findElements()java.lang.StringtoString()
-
-
-
Constructor Detail
-
ElementListSupplierLocator
public ElementListSupplierLocator(java.util.List<org.openqa.selenium.WebElement> elements)
Creates a new element list supplier locator- Parameters:
elements- element list instance
-
ElementListSupplierLocator
public ElementListSupplierLocator(java.util.function.Supplier<java.util.List<org.openqa.selenium.WebElement>> elementsSupplier)
Creates a new element list supplier locator- Parameters:
elementsSupplier- element list supplier
-
-
Method Detail
-
findElement
public org.openqa.selenium.WebElement findElement()
- Specified by:
findElementin interfaceorg.openqa.selenium.support.pagefactory.ElementLocator
-
findElements
public java.util.List<org.openqa.selenium.WebElement> findElements()
- Specified by:
findElementsin interfaceorg.openqa.selenium.support.pagefactory.ElementLocator
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-