public abstract class InterceptorOfASingleElement
extends java.lang.Object
implements net.sf.cglib.proxy.MethodInterceptor
Modifier and Type | Field and Description |
---|---|
protected WebDriver |
driver |
protected org.openqa.selenium.support.pagefactory.ElementLocator |
locator |
Constructor and Description |
---|
InterceptorOfASingleElement(org.openqa.selenium.support.pagefactory.ElementLocator locator,
WebDriver driver) |
Modifier and Type | Method and Description |
---|---|
protected abstract java.lang.Object |
getObject(WebElement element,
java.lang.reflect.Method method,
java.lang.Object[] args) |
java.lang.Object |
intercept(java.lang.Object obj,
java.lang.reflect.Method method,
java.lang.Object[] args,
net.sf.cglib.proxy.MethodProxy proxy)
Look at
MethodInterceptor.intercept(Object, Method, Object[], MethodProxy) . |
protected final org.openqa.selenium.support.pagefactory.ElementLocator locator
protected final WebDriver driver
public InterceptorOfASingleElement(org.openqa.selenium.support.pagefactory.ElementLocator locator, WebDriver driver)
protected abstract java.lang.Object getObject(WebElement element, java.lang.reflect.Method method, java.lang.Object[] args) throws java.lang.Throwable
java.lang.Throwable
public java.lang.Object intercept(java.lang.Object obj, java.lang.reflect.Method method, java.lang.Object[] args, net.sf.cglib.proxy.MethodProxy proxy) throws java.lang.Throwable
MethodInterceptor.intercept(Object, Method, Object[], MethodProxy)
.intercept
in interface net.sf.cglib.proxy.MethodInterceptor
java.lang.Throwable