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 Detail

      • 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 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