Class ClassAnnotations

java.lang.Object
org.openqa.selenium.support.pagefactory.AbstractAnnotations
io.fluentlenium.core.page.ClassAnnotations

public class ClassAnnotations extends org.openqa.selenium.support.pagefactory.AbstractAnnotations
Inspired by Annotations, but use a Class instead of a Field to retrieve the annotations.
  • Constructor Details

    • ClassAnnotations

      public ClassAnnotations (Class<?> containerClass)
      Creates a new class annotations.
      Parameters:
      containerClass - container class on witch to read annotations
  • Method Details

    • isLookupCached

      public boolean isLookupCached()
      Specified by:
      isLookupCached in class org.openqa.selenium.support.pagefactory.AbstractAnnotations
    • buildBy

      public org.openqa.selenium.By buildBy()

      Looks for one of FindBy, FindBys or FindAll class annotations. In case no annotation is provided for the field, returns null.

      Specified by:
      buildBy in class org.openqa.selenium.support.pagefactory.AbstractAnnotations
      Throws:
      IllegalArgumentException - when more than one annotation on a class provided