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 SelenideAppiumElement
static void
activateApp
(String appId) Activate applicationstatic void
back()
Navigate app back to previous screenstatic String
static void
The main starting point in your tests.static void
openAndroidDeepLink
(String deepLinkUrl, String appPackage) Open a deep link for an Android applicationstatic void
openIOSDeepLink
(String deepLinkUrl) Open a deep link for an IOS applicationstatic void
relaunchApp
(String appId) Re-launch applicationstatic void
relaunchApp
(String appId, @Nullable Duration timeout) Re-launch applicationstatic SelenideAppiumTargetLocator
switchTo()
static void
terminateApp
(String appId) Terminate applicationstatic void
terminateApp
(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)
-