Package org.fluentlenium.core.proxy
Class AtIndexElementLocator
- java.lang.Object
-
- org.fluentlenium.core.proxy.AtIndexElementLocator
-
- All Implemented Interfaces:
org.openqa.selenium.support.pagefactory.ElementLocator
- Direct Known Subclasses:
FirstElementLocator
public class AtIndexElementLocator extends java.lang.Object implements org.openqa.selenium.support.pagefactory.ElementLocator
ElementLocator
retrieving a particular index element from another locator.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.openqa.selenium.support.pagefactory.ElementLocator
listLocator
-
Constructor Summary
Constructors Constructor Description AtIndexElementLocator(org.openqa.selenium.support.pagefactory.ElementLocator listLocator, int index)
Creates a new at-index element 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
-
-