Package io.fluentlenium.core.inject
Class LabelAnnotations
java.lang.Object
io.fluentlenium.core.inject.LabelAnnotations
- All Implemented Interfaces:
FluentLabelProvider
-
Constructor Details
-
LabelAnnotations
Creates a new label annotations object.If the
@Labelannotation is present than it either uses that value as the label, of if it's the default empty string value, then sets the label as the concatenation of the field's declaring class and the field's name, for example for:public class Homepage { @FindBy(css = ".teaser img") @Label private FluentWebElement teaserImage; }the label is set to
Homepage.teaserImage.If the
@LabelHintannotation is present then it simply sets its value in this object.- Parameters:
field- field to parse
-
-
Method Details
-
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
-