Class AbstractListItemHandler<T>
java.lang.Object
net.thucydides.core.annotations.locators.AbstractListItemHandler<T>
- Type Parameters:
T- the target interface
- All Implemented Interfaces:
InvocationHandler
- Direct Known Subclasses:
WebElementFacadeListItemHandler,WidgetListItemHandler
Similar to
SmartElementHandler but wraps a concrete WebElement
instead of an ElementLocator.- Author:
- Joe Nasca
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.openqa.selenium.WebElementprotected final Class<?>protected final longprotected final org.openqa.selenium.support.pagefactory.ElementLocatorprotected final PageObjectprotected final long -
Constructor Summary
ConstructorsConstructorDescriptionAbstractListItemHandler(Class<T> targetInterface, Class<?> interfaceType, org.openqa.selenium.support.pagefactory.ElementLocator locator, org.openqa.selenium.WebElement element, PageObject page, long implicitTimeoutInMilliseconds, long waitForTimeoutInMilliseconds) Constructor. -
Method Summary
-
Field Details
-
locator
protected final org.openqa.selenium.support.pagefactory.ElementLocator locator -
element
protected final org.openqa.selenium.WebElement element -
page
-
implementerClass
-
implicitTimeoutInMilliseconds
protected final long implicitTimeoutInMilliseconds -
waitForTimeoutInMilliseconds
protected final long waitForTimeoutInMilliseconds
-
-
Constructor Details
-
AbstractListItemHandler
public AbstractListItemHandler(Class<T> targetInterface, Class<?> interfaceType, org.openqa.selenium.support.pagefactory.ElementLocator locator, org.openqa.selenium.WebElement element, PageObject page, long implicitTimeoutInMilliseconds, long waitForTimeoutInMilliseconds) Constructor.- Parameters:
targetInterface- usually WidgetObject or WebElementFacadelocator- the locator of the List containing this element
-
-
Method Details
-
invoke
- Specified by:
invokein interfaceInvocationHandler- Throws:
Throwable
-
newElementInstance
protected abstract Object newElementInstance() throws NoSuchMethodException, InstantiationException, IllegalAccessException, InvocationTargetException
-