Class SmartFieldDecorator
java.lang.Object
net.thucydides.core.annotations.locators.SmartFieldDecorator
- All Implemented Interfaces:
org.openqa.selenium.support.pagefactory.FieldDecorator
public class SmartFieldDecorator
extends java.lang.Object
implements org.openqa.selenium.support.pagefactory.FieldDecorator
-
Field Summary
Fields Modifier and Type Field Description protected org.openqa.selenium.WebDriver
driver
protected org.openqa.selenium.support.pagefactory.ElementLocatorFactory
factory
protected PageObject
page
-
Constructor Summary
Constructors Constructor Description SmartFieldDecorator(org.openqa.selenium.support.pagefactory.ElementLocatorFactory factory, org.openqa.selenium.WebDriver driver, PageObject pageObject)
SmartFieldDecorator(org.openqa.selenium.support.pagefactory.ElementLocatorFactory factory, org.openqa.selenium.WebDriver driver, PageObject pageObject, CustomFindByAnnotationProviderService customFindByAnnotationProviderService)
-
Method Summary
Modifier and Type Method 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)
protected <T> T
proxyForLocator(java.lang.ClassLoader loader, java.lang.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 Details
-
factory
protected org.openqa.selenium.support.pagefactory.ElementLocatorFactory factory -
driver
protected org.openqa.selenium.WebDriver driver -
page
-
-
Constructor Details
-
SmartFieldDecorator
public SmartFieldDecorator(org.openqa.selenium.support.pagefactory.ElementLocatorFactory factory, org.openqa.selenium.WebDriver driver, PageObject pageObject) -
SmartFieldDecorator
public SmartFieldDecorator(org.openqa.selenium.support.pagefactory.ElementLocatorFactory factory, org.openqa.selenium.WebDriver driver, PageObject pageObject, CustomFindByAnnotationProviderService customFindByAnnotationProviderService)
-
-
Method Details
-
decorate
public java.lang.Object decorate(java.lang.ClassLoader loader, java.lang.reflect.Field field)- Specified by:
decorate
in interfaceorg.openqa.selenium.support.pagefactory.FieldDecorator
-
proxyForLocator
protected <T> T proxyForLocator(java.lang.ClassLoader loader, java.lang.Class<T> interfaceType, org.openqa.selenium.support.pagefactory.ElementLocator locator) -
proxyForListLocator
protected <T> java.util.List<T> proxyForListLocator(java.lang.ClassLoader loader, java.lang.Class<T> interfaceType, org.openqa.selenium.support.pagefactory.ElementLocator locator)
-