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 Details

    • InjectionAnnotations

      public InjectionAnnotations (Field field, org.openqa.selenium.Capabilities capabilities)
      Creates a new injection annotations object
      Parameters:
      field - field to analyze
      capabilities - Selenium capabilities
  • Method Details

    • buildBy

      public org.openqa.selenium.By buildBy()
      Specified by:
      buildBy in class org.openqa.selenium.support.pagefactory.AbstractAnnotations
    • isLookupCached

      public boolean isLookupCached()
      Specified by:
      isLookupCached in class org.openqa.selenium.support.pagefactory.AbstractAnnotations
    • getLabel

      public String getLabel()
      Description copied from interface: FluentLabelProvider
      Get defined definition.
      Specified by:
      getLabel in interface FluentLabelProvider
      Returns:
      defined label
    • getLabelHints

      public String[] getLabelHints()
      Description copied from interface: FluentLabelProvider
      Get defined label hints.
      Specified by:
      getLabelHints in interface FluentLabelProvider
      Returns:
      array of label hints