public class ComponentHandler extends AbstractLocatorHandler<org.openqa.selenium.WebElement> implements InvocationHandler, LocatorHandler<org.openqa.selenium.WebElement>
WebElement.hookChainBuilder, hookDefinitions, hooks, locator, proxy, result| Constructor and Description |
|---|
ComponentHandler(org.openqa.selenium.support.pagefactory.ElementLocator locator)
Creates a new component handler
|
| Modifier and Type | Method and Description |
|---|---|
org.openqa.selenium.WebElement |
getElement()
Get the underlying element.
|
org.openqa.selenium.WebElement |
getInvocationTarget(Method method)
Retrieve the invocation target of this proxy handler.
|
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.
|
protected List<org.openqa.selenium.WebElement> |
resultToList(org.openqa.selenium.WebElement result)
Convert result to a list of selenium element.
|
addListener, equals, fireProxyElementFound, fireProxyElementSearch, getHookLocator, getLazyToString, getLocator, getLocatorResult, getMethod, hashCode, loaded, noSuchElement, now, present, proxyToString, removeListener, reset, setHooks, setProxy, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddListener, getHookLocator, getLocator, getLocatorResult, loaded, noSuchElement, now, present, removeListener, reset, setHookspublic ComponentHandler(org.openqa.selenium.support.pagefactory.ElementLocator locator)
locator - element locator for this componentpublic String getMessageContext()
LocatorHandlergetMessageContext in interface LocatorHandler<org.openqa.selenium.WebElement>protected List<org.openqa.selenium.WebElement> resultToList(org.openqa.selenium.WebElement result)
AbstractLocatorHandlerresultToList in class AbstractLocatorHandler<org.openqa.selenium.WebElement>result - found resultprotected boolean isStale()
AbstractLocatorHandlerisStale in class AbstractLocatorHandler<org.openqa.selenium.WebElement>public org.openqa.selenium.WebElement getElement()
AbstractLocatorHandlergetElement in class AbstractLocatorHandler<org.openqa.selenium.WebElement>public org.openqa.selenium.WebElement getLocatorResultImpl()
AbstractLocatorHandlergetLocatorResultImpl in class AbstractLocatorHandler<org.openqa.selenium.WebElement>public org.openqa.selenium.WebElement getInvocationTarget(Method method)
LocatorHandlergetInvocationTarget in interface LocatorHandler<org.openqa.selenium.WebElement>method - method to invokepublic Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke in interface InvocationHandlerinvoke in class AbstractLocatorHandler<org.openqa.selenium.WebElement>ThrowableCopyright © 2016 FluentLenium. All Rights Reserved.