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, org.openqa.selenium.Capabilities capabilities)
Creates a new injection annotations object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.openqa.selenium.By
buildBy()
java.lang.String
getLabel()
Get defined definition.java.lang.String[]
getLabelHints()
Get defined label hints.boolean
isLookupCached()
-
-
-
Method Detail
-
buildBy
public org.openqa.selenium.By buildBy()
- Specified by:
buildBy
in classorg.openqa.selenium.support.pagefactory.AbstractAnnotations
-
isLookupCached
public boolean isLookupCached()
- Specified by:
isLookupCached
in classorg.openqa.selenium.support.pagefactory.AbstractAnnotations
-
getLabel
public java.lang.String getLabel()
Description copied from interface:FluentLabelProvider
Get defined definition.- Specified by:
getLabel
in interfaceFluentLabelProvider
- Returns:
- defined label
-
getLabelHints
public java.lang.String[] getLabelHints()
Description copied from interface:FluentLabelProvider
Get defined label hints.- Specified by:
getLabelHints
in interfaceFluentLabelProvider
- Returns:
- array of label hints
-
-