Package io.fluentlenium.core.inject
Class InjectionAnnotations
java.lang.Object
org.openqa.selenium.support.pagefactory.AbstractAnnotations
io.fluentlenium.core.inject.InjectionAnnotations
- All Implemented Interfaces:
FluentLabelProvider
public class InjectionAnnotations
extends org.openqa.selenium.support.pagefactory.AbstractAnnotations
implements FluentLabelProvider
Inspired by
Annotations
, but also supports annotations defined on
return type class.
-
Constructor Summary
ConstructorDescriptionInjectionAnnotations
(Field field, org.openqa.selenium.Capabilities capabilities) Creates a new injection annotations object -
Method Summary
-
Constructor Details
-
InjectionAnnotations
Creates a new injection annotations object- Parameters:
field
- field to analyzecapabilities
- Selenium capabilities
-
-
Method Details
-
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
Description copied from interface:FluentLabelProvider
Get defined definition.- Specified by:
getLabel
in interfaceFluentLabelProvider
- Returns:
- defined label
-
getLabelHints
Description copied from interface:FluentLabelProvider
Get defined label hints.- Specified by:
getLabelHints
in interfaceFluentLabelProvider
- Returns:
- array of label hints
-