Class InjectionElementLocatorFactory

  • All Implemented Interfaces:
    org.openqa.selenium.support.pagefactory.ElementLocatorFactory

    public class InjectionElementLocatorFactory
    extends java.lang.Object
    implements org.openqa.selenium.support.pagefactory.ElementLocatorFactory
    ElementLocator factory used by FluentInjector.
    • Constructor Summary

      Constructors 
      Constructor Description
      InjectionElementLocatorFactory​(org.openqa.selenium.SearchContext searchContext, org.openqa.selenium.Capabilities capabilities)
      Creates a new factory
    • Constructor Detail

      • InjectionElementLocatorFactory

        public InjectionElementLocatorFactory​(org.openqa.selenium.SearchContext searchContext,
                                              org.openqa.selenium.Capabilities capabilities)
        Creates a new factory
        Parameters:
        searchContext - search context
        capabilities - device capabilities
    • Method Detail

      • createLocator

        public InjectionElementLocator createLocator​(java.lang.reflect.Field field)
        Specified by:
        createLocator in interface org.openqa.selenium.support.pagefactory.ElementLocatorFactory