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