Class ClassAnnotations

  • public class ClassAnnotations
    Inspired by Annotations, but use a Class instead of a Field to retrieve the annotations.
    • Constructor Detail

      • ClassAnnotations

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

      • isLookupCached

        public boolean isLookupCached()
        Specified by:
        isLookupCached in class
      • 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
        IllegalArgumentException - when more than one annotation on a class provided