Package io.fluentlenium.core.proxy
Class ElementSupplierLocator
java.lang.Object
io.fluentlenium.core.proxy.ElementSupplierLocator
- All Implemented Interfaces:
org.openqa.selenium.support.pagefactory.ElementLocator
- Direct Known Subclasses:
ElementInstanceLocator
public class ElementSupplierLocator
extends Object
implements org.openqa.selenium.support.pagefactory.ElementLocator
Element locator implemented by a
Supplier
of WebElement
.
-
Constructor Summary
ConstructorsConstructorDescriptionElementSupplierLocator
(Supplier<org.openqa.selenium.WebElement> elementSupplier) Creates a new element supplier locator. -
Method Summary
-
Constructor Details
-
ElementSupplierLocator
Creates a new element supplier locator.- Parameters:
elementSupplier
- element supplier
-
-
Method Details
-
findElement
public org.openqa.selenium.WebElement findElement()- Specified by:
findElement
in interfaceorg.openqa.selenium.support.pagefactory.ElementLocator
-
findElements
- Specified by:
findElements
in interfaceorg.openqa.selenium.support.pagefactory.ElementLocator
-
toString
-