Class LastElementLocator

java.lang.Object
io.fluentlenium.core.proxy.LastElementLocator
All Implemented Interfaces:
org.openqa.selenium.support.pagefactory.ElementLocator

public class LastElementLocator extends Object implements org.openqa.selenium.support.pagefactory.ElementLocator
ElementLocator retrieving the last element from another locator.
  • Constructor Details

    • LastElementLocator

      public LastElementLocator (org.openqa.selenium.support.pagefactory.ElementLocator listLocator)
      Creates a new last element locator.
      Parameters:
      listLocator - element list locator
  • 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