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
ConstructorsConstructorDescriptionInjectionAnnotations(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:
buildByin classorg.openqa.selenium.support.pagefactory.AbstractAnnotations
-
isLookupCached
public boolean isLookupCached()- Specified by:
isLookupCachedin classorg.openqa.selenium.support.pagefactory.AbstractAnnotations
-
getLabel
Description copied from interface:FluentLabelProviderGet defined definition.- Specified by:
getLabelin interfaceFluentLabelProvider- Returns:
- defined label
-
getLabelHints
Description copied from interface:FluentLabelProviderGet defined label hints.- Specified by:
getLabelHintsin interfaceFluentLabelProvider- Returns:
- array of label hints
-