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 Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract org.openqa.selenium.By
    Defines how to transform given object (field, class, etc.) into By class used by webdriver to locate elements.
    abstract boolean
    Defines whether 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 Details

    • AbstractAnnotations

      public AbstractAnnotations()
  • Method Details

    • buildBy

      public abstract org.openqa.selenium.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