net.thucydides.core.annotations.locators
Class SmartFieldDecorator

Package class diagram package SmartFieldDecorator
java.lang.Object
  extended by net.thucydides.core.annotations.locators.SmartFieldDecorator
All Implemented Interfaces:
org.openqa.selenium.support.pagefactory.FieldDecorator

public class SmartFieldDecorator
extends Object
implements org.openqa.selenium.support.pagefactory.FieldDecorator


Field Summary
protected  org.openqa.selenium.WebDriver driver
           
protected  org.openqa.selenium.support.pagefactory.ElementLocatorFactory factory
           
protected  PageObject pageObject
           
 
Constructor Summary
SmartFieldDecorator(org.openqa.selenium.support.pagefactory.ElementLocatorFactory factory, org.openqa.selenium.WebDriver driver, PageObject pageObject)
           
 
Method Summary
 Object decorate(ClassLoader loader, Field field)
           
protected
<T> List<T>
proxyForListLocator(ClassLoader loader, Class<T> interfaceType, org.openqa.selenium.support.pagefactory.ElementLocator locator)
           
protected
<T> T
proxyForLocator(ClassLoader loader, Class<T> interfaceType, org.openqa.selenium.support.pagefactory.ElementLocator locator)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

factory

protected org.openqa.selenium.support.pagefactory.ElementLocatorFactory factory

driver

protected org.openqa.selenium.WebDriver driver

pageObject

protected PageObject pageObject
Constructor Detail

SmartFieldDecorator

public SmartFieldDecorator(org.openqa.selenium.support.pagefactory.ElementLocatorFactory factory,
                           org.openqa.selenium.WebDriver driver,
                           PageObject pageObject)
Method Detail

decorate

public Object decorate(ClassLoader loader,
                       Field field)
Specified by:
decorate in interface org.openqa.selenium.support.pagefactory.FieldDecorator

proxyForLocator

protected <T> T proxyForLocator(ClassLoader loader,
                                Class<T> interfaceType,
                                org.openqa.selenium.support.pagefactory.ElementLocator locator)

proxyForListLocator

protected <T> List<T> proxyForListLocator(ClassLoader loader,
                                          Class<T> interfaceType,
                                          org.openqa.selenium.support.pagefactory.ElementLocator locator)


Copyright © 2011-2013 Wakaleo Consulting. All Rights Reserved.