Class ElementListSupplierLocator

java.lang.Object
io.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 a Supplier of list of WebElement.
  • Constructor Details

    • ElementListSupplierLocator

      public ElementListSupplierLocator (List<org.openqa.selenium.WebElement> elements)
      Creates a new element list supplier locator
      Parameters:
      elements - element list instance
    • ElementListSupplierLocator

      public ElementListSupplierLocator (Supplier<List<org.openqa.selenium.WebElement>> elementsSupplier)
      Creates a new element list supplier locator
      Parameters:
      elementsSupplier - element list 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