Interface CustomFindByAnnotationService


public interface CustomFindByAnnotationService
Created by Sergio Sacristan on 03/12/17. Implement this Interface to add custom findBy annotations
See Also:
ClasspathCustomFindByAnnotationProviderService
  • Method Summary

    Modifier and Type Method Description
    org.openqa.selenium.By buildByFromCustomFindByAnnotation​(java.lang.reflect.Field field)
    Retuns an org.openqa.selenium.By implementation that will be used to find the "field" by Selenium
    boolean isAnnotatedByCustomFindByAnnotation​(java.lang.reflect.Field field)
    Returns true if the field has any custom annotation
  • Method Details

    • isAnnotatedByCustomFindByAnnotation

      boolean isAnnotatedByCustomFindByAnnotation​(java.lang.reflect.Field field)
      Returns true if the field has any custom annotation
      Parameters:
      field -
      Returns:
      true if the field has any custom annotation
    • buildByFromCustomFindByAnnotation

      org.openqa.selenium.By buildByFromCustomFindByAnnotation​(java.lang.reflect.Field field)
      Retuns an org.openqa.selenium.By implementation that will be used to find the "field" by Selenium
      Parameters:
      field -
      Returns:
      an org.openqa.selenium.By implementation