public class ListHandler extends AbstractLocatorHandler<List<org.openqa.selenium.WebElement>>
WebElement.hookChainBuilder, hookDefinitions, hooks, locator, proxy, result| Constructor and Description |
|---|
ListHandler(org.openqa.selenium.support.pagefactory.ElementLocator locator)
Creates a new proxy handler for elements.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.openqa.selenium.WebElement |
getElement()
Get the underlying element.
|
List<org.openqa.selenium.WebElement> |
getInvocationTarget(Method method)
Retrieve the invocation target of this proxy handler.
|
protected String |
getLazyToString()
Get string representation of not already found element.
|
List<org.openqa.selenium.WebElement> |
getLocatorResultImpl()
Get the actual result of the locator.
|
String |
getMessageContext()
Retrieve the message context from this proxy locator.
|
Object |
invoke(Object proxy,
Method method,
Object[] args) |
protected boolean |
isStale()
Get the stale status of the element.
|
boolean |
present()
Check if the result is present.
|
protected List<org.openqa.selenium.WebElement> |
resultToList(List<org.openqa.selenium.WebElement> result)
Convert result to a list of selenium element.
|
addListener, equals, fireProxyElementFound, fireProxyElementSearch, getHookLocator, getLocator, getLocatorResult, getMethod, hashCode, loaded, noSuchElement, now, proxyToString, removeListener, reset, setHooks, setProxy, toStringpublic ListHandler(org.openqa.selenium.support.pagefactory.ElementLocator locator)
locator - elements locatorpublic String getMessageContext()
LocatorHandlerprotected List<org.openqa.selenium.WebElement> resultToList(List<org.openqa.selenium.WebElement> result)
AbstractLocatorHandlerresultToList in class AbstractLocatorHandler<List<org.openqa.selenium.WebElement>>result - found resultprotected org.openqa.selenium.WebElement getElement()
AbstractLocatorHandlergetElement in class AbstractLocatorHandler<List<org.openqa.selenium.WebElement>>public List<org.openqa.selenium.WebElement> getInvocationTarget(Method method)
LocatorHandlermethod - method to invokepublic boolean present()
LocatorHandlerpresent in interface LocatorHandler<List<org.openqa.selenium.WebElement>>present in class AbstractLocatorHandler<List<org.openqa.selenium.WebElement>>protected boolean isStale()
AbstractLocatorHandlerisStale in class AbstractLocatorHandler<List<org.openqa.selenium.WebElement>>public List<org.openqa.selenium.WebElement> getLocatorResultImpl()
AbstractLocatorHandlergetLocatorResultImpl in class AbstractLocatorHandler<List<org.openqa.selenium.WebElement>>public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke in interface InvocationHandlerinvoke in class AbstractLocatorHandler<List<org.openqa.selenium.WebElement>>Throwableprotected String getLazyToString()
AbstractLocatorHandlergetLazyToString in class AbstractLocatorHandler<List<org.openqa.selenium.WebElement>>Copyright © 2016 FluentLenium. All Rights Reserved.