public class AppiumElementLocatorFactory extends java.lang.Object implements CacheableElementLocatorFactory
Constructor and Description |
---|
AppiumElementLocatorFactory(SearchContext searchContext,
TimeOutDuration timeOutDuration,
WebDriver originalWebDriver,
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 timeOutDuration, WebDriver originalWebDriver, AppiumByBuilder builder)
searchContext
- The context to use when finding the elementtimeOutDuration
- is a POJO which contains timeout parameters for the element to be searchedoriginalWebDriver
- is an instance of WebDriver that is going to be used by a proxied elementbuilder
- is handler of Appium-specific page object annotationspublic CacheableLocator createLocator(java.lang.reflect.Field field)
createLocator
in interface CacheableElementLocatorFactory
createLocator
in interface org.openqa.selenium.support.pagefactory.ElementLocatorFactory
public CacheableLocator createLocator(java.lang.reflect.AnnotatedElement annotatedElement)
createLocator
in interface CacheableElementLocatorFactory