public class ElementDecorator
extends java.lang.Object
implements org.openqa.selenium.support.pagefactory.FieldDecorator
| Constructor and Description |
|---|
ElementDecorator(org.openqa.selenium.WebDriver webDriver,
org.openqa.selenium.support.pagefactory.ElementLocatorFactory factory,
java.lang.String pageName,
java.lang.String contextDescription)
Constructor for an ElementLocatorFactory.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
decorate(java.lang.ClassLoader loader,
java.lang.reflect.Field field) |
protected <T> java.util.List<T> |
proxyForListLocator(java.lang.ClassLoader loader,
java.lang.Class<T> interfaceType,
org.openqa.selenium.support.pagefactory.ElementLocator locator,
java.lang.String fieldDescription)
generates a proxy for a list of elements to be wrapped.
|
public ElementDecorator(org.openqa.selenium.WebDriver webDriver,
org.openqa.selenium.support.pagefactory.ElementLocatorFactory factory,
java.lang.String pageName,
java.lang.String contextDescription)
webDriver - the underlying WebDriver.factory - for locating elements.pageName - name of the page where the element is.fieldDescription - description of the field, including the context.public java.lang.Object decorate(java.lang.ClassLoader loader,
java.lang.reflect.Field field)
decorate in interface org.openqa.selenium.support.pagefactory.FieldDecoratorprotected <T> java.util.List<T> proxyForListLocator(java.lang.ClassLoader loader,
java.lang.Class<T> interfaceType,
org.openqa.selenium.support.pagefactory.ElementLocator locator,
java.lang.String fieldDescription)
T - class of the interface.loader - classloader for the class we're presently wrapping with
proxiesinterfaceType - type of the element to be wrappedlocator - locator for items on the page being wrappedfieldDescription - the description of the field including context.Copyright © 2017 PPI AG. All rights reserved.