Class 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

      Constructors 
      Constructor Description
      InjectionAnnotations​(java.lang.reflect.Field field)
      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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • InjectionAnnotations

        public InjectionAnnotations​(java.lang.reflect.Field field)
        Creates a new injection annotations object
        Parameters:
        field - field to analyze
    • Method Detail

      • 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