First a little disclaimer, I'm not an automator, but I'm trying to learn. I'm trying to maintain code that someone else wrote. We are using Appium capabilities to launch the APK under test on an emulator and then launching the tests. The problem is that in our latest build our APK now checks for another APK and if it's not installed it will prompt the user to install it. So now the scripts do not work because I'm not clicking the 'Install' or 'Cancel' button on the install process. My question is what is the best way to fix this so that my tests aren't failing. I'm thinking either- 1.) Install the second SDK before my app has a chance to check for it (I do not need to test that now), I'm using the scripts for regression of existing functionality 2. Have the scripts click the "Install" button.
The problem with #1 is that I don't see how to install more than 1 APK using the Android Set Capabilities. The problem with #2 is that I'm not sure how to inspect the elements on the install package and click Install?
So my question- Can you use setCapabilites to install more than 1 APK or is it possible to use Appium to prompt an install?