The -1 in the duration makes that it doesn’t goes back to app automatically
Test it:
driver.runAppInBackground(Duration.ofSeconds(-1));
This change is based on appium/appium-xcuitest-driver#381, which makes possible to minimize the application under test and then return to iOS springboard (emulates clicking Home button).
Thank you for your response, with app package, it launches the app from the first point which required Login, I want to just back the same page as I left the app and see the prompt message.
Do you have any suggestion?
but with this
driver.activateApp ( “app package”, null );
driver.navigate ().back ();
it works now but I think there is another better way for it.
Hi @Telmo_Cardoso I performed some actions on the screen and the want to go to the application’s home screen. How to do that. driver.navigate.back(); is also not working please suggest anything. I am automation my app with IOSDriver.