Class AppiumElementLocatorFactory
java.lang.Object
io.appium.java_client.pagefactory.AppiumElementLocatorFactory
- All Implemented Interfaces:
CacheableElementLocatorFactory,org.openqa.selenium.support.pagefactory.ElementLocatorFactory
-
Constructor Summary
ConstructorsConstructorDescriptionAppiumElementLocatorFactory(org.openqa.selenium.SearchContext searchContext, Duration duration, AppiumByBuilder builder) Creates a new mobile element locator factory. -
Method Summary
Modifier and TypeMethodDescription@Nullable CacheableLocatorcreateLocator(AnnotatedElement annotatedElement) @Nullable CacheableLocatorcreateLocator(Field field)
-
Constructor Details
-
AppiumElementLocatorFactory
public AppiumElementLocatorFactory(org.openqa.selenium.SearchContext searchContext, Duration duration, AppiumByBuilder builder) Creates a new mobile element locator factory.- Parameters:
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
-
-
Method Details
-
createLocator
- Specified by:
createLocatorin interfaceCacheableElementLocatorFactory- Specified by:
createLocatorin interfaceorg.openqa.selenium.support.pagefactory.ElementLocatorFactory
-
createLocator
- Specified by:
createLocatorin interfaceCacheableElementLocatorFactory
-