Package io.appium.java_client.android
Interface StartsActivity
-
- All Superinterfaces:
ExecutesMethod
- All Known Implementing Classes:
AndroidDriver
public interface StartsActivity extends ExecutesMethod
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default java.lang.String
currentActivity()
Get the current activity being run on the mobile device.default java.lang.String
getCurrentPackage()
Get the current package being run on the mobile device.default void
startActivity(Activity activity)
This method should start arbitrary activity during a test.-
Methods inherited from interface io.appium.java_client.ExecutesMethod
execute, execute
-
-
-
-
Method Detail
-
startActivity
default void startActivity(Activity activity)
This method should start arbitrary activity during a test. If the activity belongs to another application, that application is started and the activity is opened.Usage:
Activity activity = new Activity("app package goes here", "app activity goes here"); activity.setWaitAppPackage("app wait package goes here"); activity.setWaitAppActivity("app wait activity goes here"); driver.startActivity(activity);
- Parameters:
activity
- TheActivity
object
-
currentActivity
default java.lang.String currentActivity()
Get the current activity being run on the mobile device.- Returns:
- a current activity being run on the mobile device.
-
getCurrentPackage
default java.lang.String getCurrentPackage()
Get the current package being run on the mobile device.- Returns:
- a current package being run on the mobile device.
-
-