public interface StartsActivity extends ExecutesMethod, CanRememberExtensionPresence
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)
Deprecated.
Use 'mobile: startActivity' extension instead
|
execute, execute
assertExtensionExists, markExtensionAbsence
@Deprecated 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
object@Nullable default java.lang.String currentActivity()
@Nullable default java.lang.String getCurrentPackage()