We have to use appium version 2.0 and remote execution to utilize some of the newer drivers/fixes and I am having trouble starting an existing application on an Android device. On iOS I can just use the startApplication mobile keyword and replace the path string with the bundleId but this doesn’t seem to work on Android (I have not seen the startExisitingApplication work with appium 2.0). I get this appium error:
Original error: The application at 'com.specialized.android.staging' does not exist or is not accessible
With the same desired capabilities I can start the application with this command but it requires manually reading the desired capabilities into a variable every test run:
AppiumDriverManager.createMobileDriver(MobileDriverType.ANDROID_DRIVER, capabilities, new URL("http://localhost:4723"))
It seems that with startApplication Katalon Studio is looking for the apk at the location specified in the string. If I leave the string blank I will still get an error. Is there a way to use a built in keyword to start the android mobile application with appium 2.0 without specifying an apk path and using the appPackage/appActivity desired capabilities instead?