com.codeborne.selenide.appium.ScreenObject Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of selenide-appium Show documentation
Show all versions of selenide-appium Show documentation
Selenide = concise API for Selenium WebDriver
package com.codeborne.selenide.appium;
import com.codeborne.selenide.Selenide;
import static com.codeborne.selenide.Selenide.page;
public class ScreenObject {
/**
* Create a Page Object instance.
*
* It's just an alias for {@link Selenide#page(Class)}
*
* @see Selenide#page(Class)
*/
public static PageObjectClass screen(Class pageObjectClass) {
return page(pageObjectClass);
}
/**
* Initialize a Page Object fields annotated with @FindBy, @AndroidFindBy, @iOSFindBy etc.
*
* It's just an alias for {@link Selenide#page(Object)}
*
* @see Selenide#page(Object)
*/
public static PageObjectClass screen(T pageObject) {
return page(pageObject);
}
}