Class AbstractAnnotations

java.lang.Object
org.openqa.selenium.support.pagefactory.AbstractAnnotations
Direct Known Subclasses:
Annotations

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

    • AbstractAnnotations

      public AbstractAnnotations()
  • Method Details

    • 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 given element should be returned from cache on further calls.
      Returns:
      boolean if lookup cached