public interface StartsActivity extends ExecutesMethod
Modifier and Type | Method and 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.
|
execute, execute
default void startActivity(Activity activity)
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);
activity
- The Activity
objectdefault java.lang.String currentActivity()
default java.lang.String getCurrentPackage()