Class SmartFieldDecorator
java.lang.Object
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
FieldsModifier and TypeFieldDescriptionprotected org.openqa.selenium.WebDriverprotected org.openqa.selenium.support.pagefactory.ElementLocatorFactoryprotected PageObject -
Constructor Summary
ConstructorsConstructorDescriptionSmartFieldDecorator(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 TypeMethodDescriptiondecorate(ClassLoader loader, Field field) protected <T> List<T>proxyForListLocator(ClassLoader loader, Class<T> interfaceType, org.openqa.selenium.support.pagefactory.ElementLocator locator) protected <T> TproxyForLocator(ClassLoader loader, Class<T> interfaceType, org.openqa.selenium.support.pagefactory.ElementLocator locator)
-
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
- Specified by:
decoratein interfaceorg.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)
-