T - the target interfacepublic abstract class AbstractListItemHandler<T> extends Object implements InvocationHandler
SmartElementHandler but wraps a concrete WebElement
instead of an ElementLocator.| Modifier and Type | Field and Description |
|---|---|
protected org.openqa.selenium.WebElement |
element |
protected Class<?> |
implementerClass |
protected long |
implicitTimeoutInMilliseconds |
protected org.openqa.selenium.support.pagefactory.ElementLocator |
locator |
protected PageObject |
page |
protected long |
waitForTimeoutInMilliseconds |
| Constructor and Description |
|---|
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.
|
| 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 org.openqa.selenium.WebElement element
protected final PageObject page
protected final Class<?> implementerClass
protected final long implicitTimeoutInMilliseconds
protected final long waitForTimeoutInMilliseconds
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)
targetInterface - usually WidgetObject or WebElementFacadelocator - the locator of the List containing this elementpublic Object invoke(Object object, Method method, Object[] objects) throws Throwable
invoke in interface InvocationHandlerThrowableprotected abstract Object newElementInstance() throws NoSuchMethodException, InstantiationException, IllegalAccessException, InvocationTargetException
Copyright © 2022. All rights reserved.