Package org.fluentlenium.core.inject
Class InjectionAnnotations
- java.lang.Object
-
- org.openqa.selenium.support.pagefactory.AbstractAnnotations
-
- org.fluentlenium.core.inject.InjectionAnnotations
-
- All Implemented Interfaces:
FluentLabelProvider
public class InjectionAnnotations extends org.openqa.selenium.support.pagefactory.AbstractAnnotations implements FluentLabelProvider
Inspired byAnnotations, but also supports annotations defined on return type class.
-
-
Constructor Summary
Constructors Constructor Description InjectionAnnotations(java.lang.reflect.Field field)Creates a new injection annotations object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.openqa.selenium.BybuildBy()java.lang.StringgetLabel()Get defined definition.java.lang.String[]getLabelHints()Get defined label hints.booleanisLookupCached()
-
-
-
Method Detail
-
buildBy
public org.openqa.selenium.By buildBy()
- Specified by:
buildByin classorg.openqa.selenium.support.pagefactory.AbstractAnnotations
-
isLookupCached
public boolean isLookupCached()
- Specified by:
isLookupCachedin classorg.openqa.selenium.support.pagefactory.AbstractAnnotations
-
getLabel
public java.lang.String getLabel()
Description copied from interface:FluentLabelProviderGet defined definition.- Specified by:
getLabelin interfaceFluentLabelProvider- Returns:
- defined label
-
getLabelHints
public java.lang.String[] getLabelHints()
Description copied from interface:FluentLabelProviderGet defined label hints.- Specified by:
getLabelHintsin interfaceFluentLabelProvider- Returns:
- array of label hints
-
-