public class DefaultFieldDecorator extends Object implements FieldDecorator
Modifier and Type | Field and Description |
---|---|
protected ElementLocatorFactory |
factory |
Constructor and Description |
---|
DefaultFieldDecorator(ElementLocatorFactory factory) |
Modifier and Type | Method and Description |
---|---|
Object |
decorate(ClassLoader loader,
Field field)
This method is called by PageFactory on all fields to decide how to decorate the field.
|
protected boolean |
isDecoratableList(Field field) |
protected List<org.openqa.selenium.WebElement> |
proxyForListLocator(ClassLoader loader,
ElementLocator locator) |
protected org.openqa.selenium.WebElement |
proxyForLocator(ClassLoader loader,
ElementLocator locator) |
protected ElementLocatorFactory factory
public DefaultFieldDecorator(ElementLocatorFactory factory)
public Object decorate(ClassLoader loader, Field field)
FieldDecorator
decorate
in interface FieldDecorator
loader
- The class loader that was used for the page objectfield
- The field that may be decorated.protected boolean isDecoratableList(Field field)
protected org.openqa.selenium.WebElement proxyForLocator(ClassLoader loader, ElementLocator locator)
protected List<org.openqa.selenium.WebElement> proxyForListLocator(ClassLoader loader, ElementLocator locator)
Copyright © 2016. All rights reserved.