org.openqa.selenium.support.pagefactory
Interface FieldDecorator

All Known Implementing Classes:
DefaultFieldDecorator

public interface FieldDecorator

Allows the PageFactory to decorate fields.


Method Summary
 Object decorate(ClassLoader loader, Field field)
          This method is called by PageFactory on all fields to decide how to decorate the field.
 

Method Detail

decorate

Object decorate(ClassLoader loader,
                Field field)
This method is called by PageFactory on all fields to decide how to decorate the field.

Parameters:
loader - The class loader that was used for the page object
field - The field that may be decorated.
Returns:
Value to decorate the field with or null if it shouldn't be decorated. If non-null, must be assignable to the field.


Copyright © 2011. All Rights Reserved.