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.
|
AppiumElementLocatorFactory(SearchContext searchContext,
TimeOutDuration duration,
AppiumByBuilder builder)
Deprecated.
This constructor is going to be
removed. Use
AppiumElementLocatorFactory(SearchContext, Duration, AppiumByBuilder) instead. |
| Modifier and Type | Method and Description |
|---|---|
CacheableLocator |
createLocator(java.lang.reflect.AnnotatedElement annotatedElement) |
CacheableLocator |
createLocator(java.lang.reflect.Field field) |
@Deprecated public AppiumElementLocatorFactory(SearchContext searchContext, TimeOutDuration duration, AppiumByBuilder builder)
AppiumElementLocatorFactory(SearchContext, Duration, AppiumByBuilder) instead.searchContext - The context to use when finding the elementduration - is a POJO which contains timeout parameters for the elements to be foundbuilder - is handler of Appium-specific page object annotationspublic 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 CacheableElementLocatorFactorycreateLocator in interface org.openqa.selenium.support.pagefactory.ElementLocatorFactory@Nullable public CacheableLocator createLocator(java.lang.reflect.AnnotatedElement annotatedElement)
createLocator in interface CacheableElementLocatorFactory