T - the target interfacepublic abstract class AbstractSingleItemHandler<T> extends Object implements InvocationHandler
| Modifier and Type | Field and Description |
|---|---|
protected Class<?> |
implementerClass |
protected org.openqa.selenium.support.pagefactory.ElementLocator |
locator |
protected PageObject |
page |
| Constructor and Description |
|---|
AbstractSingleItemHandler(Class<T> targetInterface,
Class<?> interfaceType,
org.openqa.selenium.support.pagefactory.ElementLocator locator,
PageObject page) |
| Modifier and Type | Method and Description |
|---|---|
Object |
invoke(Object object,
Method method,
Object[] objects) |
protected abstract Object |
newElementInstance() |
protected final org.openqa.selenium.support.pagefactory.ElementLocator locator
protected final PageObject page
protected final Class<?> implementerClass
public AbstractSingleItemHandler(Class<T> targetInterface, Class<?> interfaceType, org.openqa.selenium.support.pagefactory.ElementLocator locator, PageObject page)
public Object invoke(Object object, Method method, Object[] objects) throws Throwable
invoke in interface InvocationHandlerThrowableprotected abstract Object newElementInstance() throws InvocationTargetException, NoSuchMethodException, InstantiationException, IllegalAccessException
Copyright © 2022. All rights reserved.