T - type of the result retrieved by the element locatorpublic interface LocatorHandler<T>
| Modifier and Type | Method and Description |
|---|---|
boolean |
addListener(ProxyElementListener listener)
Add a listener for this locator handler.
|
org.openqa.selenium.support.pagefactory.ElementLocator |
getHookLocator()
Retrieve the element locator used by this proxy, with hooks applied.
|
T |
getInvocationTarget(Method method)
Retrieve the invocation target of this proxy handler.
|
org.openqa.selenium.support.pagefactory.ElementLocator |
getLocator()
Retrieve the element locator used by this proxy, without any hook applied.
|
T |
getLocatorResult()
Get the result retrieved by the element locator, without any hook applied.
|
String |
getMessageContext()
Retrieve the message context from this proxy locator.
|
boolean |
loaded()
Check if this handler has loaded it's result.
|
org.openqa.selenium.NoSuchElementException |
noSuchElement()
Build a
NoSuchElementException with message from this locator. |
void |
now()
If result is not loaded, load result immediatly.
|
boolean |
present()
Check if the result is present.
|
boolean |
removeListener(ProxyElementListener listener)
Removes a proxy element listener.
|
void |
reset()
Reset the loaded data.
|
void |
setHooks(HookChainBuilder hookChainBuilder,
List<HookDefinition<?>> hookDefinitions)
Apply this hook list.
|
org.openqa.selenium.support.pagefactory.ElementLocator getLocator()
T getLocatorResult()
org.openqa.selenium.support.pagefactory.ElementLocator getHookLocator()
T getInvocationTarget(Method method)
method - method to invokevoid setHooks(HookChainBuilder hookChainBuilder, List<HookDefinition<?>> hookDefinitions)
hookChainBuilder - hook chain builderhookDefinitions - hook definitionsboolean loaded()
void reset()
void now()
boolean present()
boolean addListener(ProxyElementListener listener)
listener - listener to add, which will be notified when result is searched and foundboolean removeListener(ProxyElementListener listener)
listener - listener to removeorg.openqa.selenium.NoSuchElementException noSuchElement()
NoSuchElementException with message from this locator.String getMessageContext()
Copyright © 2016 FluentLenium. All Rights Reserved.