public class AppiumElementLocatorFactory extends java.lang.Object implements CacheableElementLocatorFactory
Constructor and Description |
---|
AppiumElementLocatorFactory(SearchContext searchContext,
java.time.Duration 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, java.time.Duration duration, AppiumByBuilder builder)
searchContext
- The context to use when finding the elementduration
- timeout parameters for the elements to be foundbuilder
- 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