public class AppiumElementLocatorFactory extends java.lang.Object implements CacheableElementLocatorFactory
Constructor and Description |
---|
AppiumElementLocatorFactory(SearchContext searchContext,
TimeOutDuration duration,
AppiumByBuilder builder)
Creates a new mobile element locator factory.
|
Modifier and Type | Method and Description |
---|---|
CacheableLocator |
createLocator(java.lang.reflect.AnnotatedElement annotatedElement) |
CacheableLocator |
createLocator(java.lang.reflect.Field field) |
public AppiumElementLocatorFactory(SearchContext searchContext, TimeOutDuration duration, AppiumByBuilder builder)
searchContext
- The context to use when finding the elementduration
- is a POJO which contains timeout parameters for the element to be searchedbuilder
- is handler of Appium-specific page object annotations@Nullable public CacheableLocator createLocator(java.lang.reflect.Field field)
createLocator
in interface CacheableElementLocatorFactory
createLocator
in interface org.openqa.selenium.support.pagefactory.ElementLocatorFactory
@Nullable public CacheableLocator createLocator(java.lang.reflect.AnnotatedElement annotatedElement)
createLocator
in interface CacheableElementLocatorFactory