public class DefaultElementLocatorFactory extends Object implements ElementLocatorFactory
WebElement => WebElementLocatorRegionObject => RegionElementLocatorRegionElementLocator instance, the shouldCache-flag will
be set to true.| Modifier and Type | Field and Description |
|---|---|
protected RegionFactory |
regionFactory |
protected VaniContext |
vaniContext |
| Constructor and Description |
|---|
DefaultElementLocatorFactory() |
| Modifier and Type | Method and Description |
|---|---|
VaniElementLocator<?> |
createLocator(FieldTypeInfo fieldTypeInfo,
org.openqa.selenium.SearchContext searchContext,
org.openqa.selenium.By by,
boolean shouldCache)
When a field on a class needs to be decorated with an
VaniElementLocator this method will be called. |
@Autowired protected VaniContext vaniContext
@Autowired protected RegionFactory regionFactory
public VaniElementLocator<?> createLocator(FieldTypeInfo fieldTypeInfo, org.openqa.selenium.SearchContext searchContext, org.openqa.selenium.By by, boolean shouldCache)
ElementLocatorFactoryVaniElementLocator this method will be called.createLocator in interface ElementLocatorFactoryCopyright © 2016. All rights reserved.