public class ComponentHandler extends AbstractLocatorHandler<org.openqa.selenium.WebElement> implements java.lang.reflect.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(java.lang.reflect.Method method)
Retrieve the invocation target of this proxy handler.
|
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.
|
protected java.util.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 java.lang.String getMessageContext()
LocatorHandlergetMessageContext in interface LocatorHandler<org.openqa.selenium.WebElement>protected java.util.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(java.lang.reflect.Method method)
LocatorHandlergetInvocationTarget in interface LocatorHandler<org.openqa.selenium.WebElement>method - method to invokepublic 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<org.openqa.selenium.WebElement>java.lang.ThrowableCopyright © 2018 FluentLenium. All Rights Reserved.