Interface ElementLocatorFactory

All Known Implementing Classes:
AjaxElementLocatorFactory, DefaultElementLocatorFactory

public interface ElementLocatorFactory
A factory for producing ElementLocators. It is expected that a new ElementLocator will be returned per call.
  • Method Summary

    Modifier and Type
    Method
    Description
    When a field on a class needs to be decorated with an ElementLocator this method will be called.
  • Method Details

    • createLocator

      ElementLocator createLocator(Field field)
      When a field on a class needs to be decorated with an ElementLocator this method will be called.
      Parameters:
      field - the field
      Returns:
      An ElementLocator object.