Interface StartsActivity

    • 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 - The Activity 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.