How to push app in background and launch from same screen in Appium with selenium

前端 未结 10 951
一向
一向 2021-01-07 06:44

Is there any way to do the following process in android Automation using Appium with android driver?

Press home button from some specific screen. Put app in backgrou

10条回答
  •  不要未来只要你来
    2021-01-07 07:39

    This will navigate to the Gmail App while executing your Appium script. You Just Change the package name & activity of your app.

    Activity activity = new Activity("com.google.android.gm", "com.google.android.gm.ConversationListActivityGmail");
    activity.setStopApp(false);
    ((AndroidDriver) driver).startActivity(activity);
    

提交回复
热议问题