Package com.codeborne.selenide.appium
Class SelenideAppium
java.lang.Object
com.codeborne.selenide.appium.SelenideAppium
The main starting point of Selenide-Appium.
You start with methods launchApp() for launching the tested application
-
Method Summary
Modifier and TypeMethodDescriptionstatic SelenideAppiumElement$(org.openqa.selenium.By seleniumSelector) static SelenideAppiumElement$(org.openqa.selenium.By seleniumSelector, int index) static SelenideAppiumElement$(org.openqa.selenium.WebElement webElement) static SelenideAppiumCollection$$(Collection<? extends org.openqa.selenium.WebElement> elements) static SelenideAppiumCollection$$(org.openqa.selenium.By selector) static SelenideAppiumElementstatic voidactivateApp(String appId) Activate applicationstatic voidback()Navigate app back to previous screenstatic Stringstatic voidThe main starting point in your tests.static voidopenAndroidDeepLink(String deepLinkUrl, String appPackage) Open a deep link for an Android applicationstatic voidopenIOSDeepLink(String deepLinkUrl) Open a deep link for an IOS applicationstatic voidrelaunchApp(String appId) Re-launch applicationstatic voidrelaunchApp(String appId, @Nullable Duration timeout) Re-launch applicationstatic SelenideAppiumTargetLocatorswitchTo()static voidterminateApp(String appId) Terminate applicationstatic voidterminateApp(String appId, @Nullable Duration timeout) Terminate application
-
Method Details
-
launchApp
public static void launchApp()The main starting point in your tests. Launch a mobile application. Do nothing if driver already created. -
openIOSDeepLink
Open a deep link for an IOS application- Parameters:
deepLinkUrl- - deep link url
-
openAndroidDeepLink
Open a deep link for an Android application- Parameters:
deepLinkUrl- - deep link urlappPackage- - Android application package
-
activateApp
Activate application- Parameters:
appId- - applicationId for Android or bundleId for iOS
-
terminateApp
Terminate application- Parameters:
appId- - applicationId for Android or bundleId for iOS
-
terminateApp
Terminate application- Parameters:
appId- - applicationId for Android or bundleId for iOStimeout- - The count of milliseconds to wait until the app is terminated
-
relaunchApp
Re-launch application- Parameters:
appId- - applicationId for Android or bundleId for iOS
-
relaunchApp
Re-launch application- Parameters:
appId- - applicationId for Android or bundleId for iOStimeout- - The count of milliseconds to wait until the app is terminated
-
back
public static void back()Navigate app back to previous screen -
switchTo
-
getContextHandles
-
getCurrentContext
-
$x
-
$
-
$
-
$
-
$$
-
$$
public static SelenideAppiumCollection $$(Collection<? extends org.openqa.selenium.WebElement> elements)
-