Package com.codeborne.selenide.appium
Class SelenideAppiumPageFactory
java.lang.Object
com.codeborne.selenide.impl.SelenidePageFactory
com.codeborne.selenide.appium.SelenideAppiumPageFactory
- All Implemented Interfaces:
PageObjectFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected BaseElementsCollection<? extends SelenideElement,
? extends BaseElementsCollection<?, ?>> createCollection
(CollectionSource collection, Class<?> klass) decorate
(ClassLoader loader, Driver driver, WebElementSource searchContext, Field field, org.openqa.selenium.By selector, Type[] genericTypes) protected SelenideElement
decorateWebElement
(Driver driver, WebElementSource searchContext, org.openqa.selenium.By selector, Field field, String alias) protected org.openqa.selenium.support.pagefactory.FieldDecorator
defaultFieldDecorator
(Driver driver, WebElementSource searchContext) protected org.openqa.selenium.By
findSelector
(Driver driver, Field field) Methods inherited from class com.codeborne.selenide.impl.SelenidePageFactory
createElementsCollection, createElementsContainer, createElementsContainerList, createFieldValue, getFieldValue, getListGenericType, getSearchContext, indexOf, initElements, initElementsContainer, initField, initFields, isDecoratableList, page, page, setFieldValue, shouldCache
-
Constructor Details
-
SelenideAppiumPageFactory
public SelenideAppiumPageFactory()
-
-
Method Details
-
findSelector
@Nonnull @CheckReturnValue protected org.openqa.selenium.By findSelector(Driver driver, Field field) - Overrides:
findSelector
in classSelenidePageFactory
- Parameters:
driver
- Used by subclasses (e.g. in selenide-appium plugin)field
- expected to be an element in a Page Object- Returns:
By
instance used by webdriver to locate elements
-
defaultFieldDecorator
@Nonnull @CheckReturnValue protected org.openqa.selenium.support.pagefactory.FieldDecorator defaultFieldDecorator(Driver driver, @Nullable WebElementSource searchContext) - Overrides:
defaultFieldDecorator
in classSelenidePageFactory
-
decorate
@CheckReturnValue @Nullable public Object decorate(ClassLoader loader, Driver driver, @Nullable WebElementSource searchContext, Field field, org.openqa.selenium.By selector, Type[] genericTypes) - Overrides:
decorate
in classSelenidePageFactory
-
decorateWebElement
@Nonnull @CheckReturnValue protected SelenideElement decorateWebElement(Driver driver, @Nullable WebElementSource searchContext, org.openqa.selenium.By selector, Field field, @Nullable String alias) - Overrides:
decorateWebElement
in classSelenidePageFactory
-
createCollection
@Nonnull @CheckReturnValue protected BaseElementsCollection<? extends SelenideElement,? extends BaseElementsCollection<?, createCollection?>> (CollectionSource collection, Class<?> klass) - Overrides:
createCollection
in classSelenidePageFactory
-