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 Details

    • ElementSupplierLocator

      public ElementSupplierLocator (Supplier<org.openqa.selenium.WebElement> elementSupplier)
      Creates a new element supplier locator.
      Parameters:
      elementSupplier - element supplier
  • Method Details

    • findElement

      public org.openqa.selenium.WebElement findElement()
      Specified by:
      findElement in interface org.openqa.selenium.support.pagefactory.ElementLocator
    • findElements

      public List<org.openqa.selenium.WebElement> findElements()
      Specified by:
      findElements in interface org.openqa.selenium.support.pagefactory.ElementLocator
    • toString

      public String toString()
      Overrides:
      toString in class Object