public class ListHandler extends AbstractLocatorHandler<java.util.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.
|
java.util.List<org.openqa.selenium.WebElement> |
getInvocationTarget(java.lang.reflect.Method method)
Retrieve the invocation target of this proxy handler.
|
protected java.lang.String |
getLazyToString()
Get string representation of not already found element.
|
java.util.List<org.openqa.selenium.WebElement> |
getLocatorResultImpl()
Get the actual result of the locator.
|
java.lang.String |
getMessageContext()
Retrieve the message context from this proxy locator.
|
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args) |
protected boolean |
isStale()
Get the stale status of the element.
|
boolean |
present()
Check if the result is present.
|
protected java.util.List<org.openqa.selenium.WebElement> |
resultToList(java.util.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 java.lang.String getMessageContext()
LocatorHandlerprotected java.util.List<org.openqa.selenium.WebElement> resultToList(java.util.List<org.openqa.selenium.WebElement> result)
AbstractLocatorHandlerresultToList in class AbstractLocatorHandler<java.util.List<org.openqa.selenium.WebElement>>result - found resultprotected org.openqa.selenium.WebElement getElement()
AbstractLocatorHandlergetElement in class AbstractLocatorHandler<java.util.List<org.openqa.selenium.WebElement>>public java.util.List<org.openqa.selenium.WebElement> getInvocationTarget(java.lang.reflect.Method method)
LocatorHandlermethod - method to invokepublic boolean present()
LocatorHandlerpresent in interface LocatorHandler<java.util.List<org.openqa.selenium.WebElement>>present in class AbstractLocatorHandler<java.util.List<org.openqa.selenium.WebElement>>protected boolean isStale()
AbstractLocatorHandlerisStale in class AbstractLocatorHandler<java.util.List<org.openqa.selenium.WebElement>>public java.util.List<org.openqa.selenium.WebElement> getLocatorResultImpl()
AbstractLocatorHandlergetLocatorResultImpl in class AbstractLocatorHandler<java.util.List<org.openqa.selenium.WebElement>>public java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
invoke in interface java.lang.reflect.InvocationHandlerinvoke in class AbstractLocatorHandler<java.util.List<org.openqa.selenium.WebElement>>java.lang.Throwableprotected java.lang.String getLazyToString()
AbstractLocatorHandlergetLazyToString in class AbstractLocatorHandler<java.util.List<org.openqa.selenium.WebElement>>Copyright © 2018 FluentLenium. All Rights Reserved.