Class AbstractSingleItemHandler<T>
java.lang.Object
net.thucydides.core.annotations.locators.AbstractSingleItemHandler<T>
- Type Parameters:
T- the target interface
- All Implemented Interfaces:
InvocationHandler
- Direct Known Subclasses:
SmartElementHandler,SmartWidgetHandler
Base class for handlers of non-List members.
- Author:
- Joe Nasca
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Class<?>protected final org.openqa.selenium.support.pagefactory.ElementLocatorprotected final PageObject -
Constructor Summary
ConstructorsConstructorDescriptionAbstractSingleItemHandler(Class<T> targetInterface, Class<?> interfaceType, org.openqa.selenium.support.pagefactory.ElementLocator locator, PageObject page) -
Method Summary
-
Field Details
-
locator
protected final org.openqa.selenium.support.pagefactory.ElementLocator locator -
page
-
implementerClass
-
-
Constructor Details
-
AbstractSingleItemHandler
public AbstractSingleItemHandler(Class<T> targetInterface, Class<?> interfaceType, org.openqa.selenium.support.pagefactory.ElementLocator locator, PageObject page)
-
-
Method Details
-
invoke
- Specified by:
invokein interfaceInvocationHandler- Throws:
Throwable
-
newElementInstance
protected abstract Object newElementInstance() throws InvocationTargetException, NoSuchMethodException, InstantiationException, IllegalAccessException
-