public class ElementListHandler
extends java.lang.Object
implements java.lang.reflect.InvocationHandler
| Constructor and Description |
|---|
ElementListHandler(java.lang.Class<T> interfaceType,
org.openqa.selenium.WebDriver webDriver,
org.openqa.selenium.support.pagefactory.ElementLocator locator,
java.lang.String pageName,
java.lang.String fieldDescription)
Given an interface and a locator, apply a wrapper over a list of
elements.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
invoke(java.lang.Object o,
java.lang.reflect.Method method,
java.lang.Object[] objects)
Executed on invoke of the requested proxy.
|
public ElementListHandler(java.lang.Class<T> interfaceType,
org.openqa.selenium.WebDriver webDriver,
org.openqa.selenium.support.pagefactory.ElementLocator locator,
java.lang.String pageName,
java.lang.String fieldDescription)
T - type of the interface.interfaceType - interface type we're trying to wrap around the
element.webDriver - the underlying WebDriver.locator - locator on the page for the elements.pageName - name of the page where the element is.fieldDescription - description of the field, including the context.public java.lang.Object invoke(java.lang.Object o,
java.lang.reflect.Method method,
java.lang.Object[] objects)
throws java.lang.Throwable
invoke in interface java.lang.reflect.InvocationHandlero - object to invoke onmethod - method to invokeobjects - parameters for methodjava.lang.Throwable - when frightened.Copyright © 2017 PPI AG. All rights reserved.