Class DefaultElementLocatorFactory
- java.lang.Object
-
- org.openqa.selenium.support.pagefactory.DefaultElementLocatorFactory
-
- All Implemented Interfaces:
ElementLocatorFactory
public final class DefaultElementLocatorFactory extends java.lang.Object implements ElementLocatorFactory
-
-
Constructor Summary
Constructors Constructor Description DefaultElementLocatorFactory(org.openqa.selenium.SearchContext searchContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ElementLocator
createLocator(java.lang.reflect.Field field)
When a field on a class needs to be decorated with anElementLocator
this method will be called.
-
-
-
Method Detail
-
createLocator
public ElementLocator createLocator(java.lang.reflect.Field field)
Description copied from interface:ElementLocatorFactory
When a field on a class needs to be decorated with anElementLocator
this method will be called.- Specified by:
createLocator
in interfaceElementLocatorFactory
- Parameters:
field
- the field- Returns:
- An ElementLocator object.
-
-