Handle two apps on one device in one session appium

Hi everyone,

I have a such scenario

  1. Run 1st app
  2. Do something which opens 2nd app (automatically)
  3. Do something in 2nd back to 1st app (automatically)
  4. Do next things in 1st app

Is it possible handle such scenario in appium ?

1 Like

Yes, you can do it by switching between apps

Activity activity = new Activity(appPackageName, appActivityName);
(AndroidDriver) driver.startActivity(activity);