Class InjectionElementLocatorFactory

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

    public class InjectionElementLocatorFactory
    extends Object
    implements org.openqa.selenium.support.pagefactory.ElementLocatorFactory
    ElementLocator factory used by FluentInjector.
    • 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​(Field field)
        Specified by:
        createLocator in interface org.openqa.selenium.support.pagefactory.ElementLocatorFactory