Class AbstractAnnotations

  • Direct Known Subclasses:
    Annotations

    public abstract class AbstractAnnotations
    extends java.lang.Object
    Abstract class to work with fields in Page Objects. Provides methods to process FindBy, FindBys and FindAll annotations.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract By buildBy()
      Defines how to transform given object (field, class, etc) into By class used by webdriver to locate elements.
      abstract boolean isLookupCached()
      Defines whether or not given element should be returned from cache on further calls.
      • Methods inherited from class java.lang.Object

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

      • AbstractAnnotations

        public AbstractAnnotations()
    • Method Detail

      • buildBy

        public abstract By buildBy()
        Defines how to transform given object (field, class, etc) into By class used by webdriver to locate elements.
        Returns:
        By object
      • isLookupCached

        public abstract boolean isLookupCached()
        Defines whether or not given element should be returned from cache on further calls.
        Returns:
        boolean if lookup cached