Im using Appium to test my iOS app on real device. During the test I need to go to the home screen (I must do so) but can't find a way to do it.
I found here that there is an option to use the accessibility for Home button- Appium iOS can't inspect notification layer
but how can I click on this? Appium doesn't recognized this button.
Any suggestions?
Using Appium Java client you can switch to Home screen on iOS the same way as on Android:
driver.runAppInBackground(Duration.ofSeconds(-1));