Hello guys,
I need your help. Seems a similar issue but no success for me doing things which was usefull for @juanmartinvidal .
So Error is: “Original error: Cannot start the ‘com.oneonone.boxvpn’ application. Visit https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/android/activity-startup.md for troubleshooting. Original error: Cannot start the ‘com.oneonone.boxvpn’ application. Visit https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/android/activity-startup.md for troubleshooting. Original error: Activity name ‘.boxpn.gtcap.co.uk.react_vpn.SplashActivity’ used to start the app doesn’t exist or cannot be launched! Make sure it exists and is a launchable activity”
I have used following code in capabilities:
capabilities.setCapability("platformName", "Android");
capabilities.setCapability(MobileCapabilityType.DEVICE_NAME, "Demo");
capabilities.setCapability(MobileCapabilityType.APP, app.getAbsolutePath());
capabilities.setCapability(MobileCapabilityType.APPIUM_VERSION, "1.10.1");
driver = new AndroidDriver<>(new URL("http://127.0.0.1:4723/wd/hub"), capabilities);
capabilities.setCapability("appWaitPackage", "com.oneonone.boxvpn");
capabilities.setCapability("appWaitActivity", "*");
Also I have used different cases for “appWaitActivity”:
capabilities.setCapability(“appWaitActivity”, “.boxpn.gtcap.co.uk.react_vpn.SplashActivity”); OR
capabilities.setCapability(“appWaitActivity”, “boxpn.gtcap.co.uk.react_vpn.SplashActivity”); OR
capabilities.setCapability(“appWaitActivity”, “.boxpn.gtcap.co.uk.react_vpn.MainActivity”); OR
capabilities.setCapability(“appWaitActivity”, “boxpn.gtcap.co.uk.react_vpn.MainActivity”); OR
capabilities.setCapability(“appWaitActivity”, “.SplashActivity"); OR
capabilities.setCapability(“appWaitActivity”, ".MainActivity”); OR
Nothing from listed strings didn’t works. Please let me know if you have any ideas or things I can try to invoke an app.