Screen 1: Default screen that is visible on App launch
Screen 2: This screen does not come by default and may be 2-3 steps down the line after screen1.
Now i want to start the Appium session with Screen 2 and not screen 1. How to do that?
I know this can be done using “appActivity” while initialising appium instance. Looking for an alternative for iOS.
I know this can be done using “appActivity” while initializing appium instance
Does this means we provide Screen 2 activity name in Desire Capability while creating appium Instance ?
But I have impression that it is must to pass only Launchable activity … Please correct me if I am wrong.
Can u share your first solution please for our learning ?
final File appDir = new File("/Users/xxxx/xxx/xxxx");
final File app = new File(appDir, "xxxxx.apk");
capabilities.setCapability("app", app.getAbsolutePath());
driver = new AndroidDriver(uri, capabilities);
appPackage and appActivity can be used to define from where to start android driver.