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