iOS Automation Appium: How to lock screen for iPhone real device without a duration?
问题 I want to automate the following case: locking my screen of the real device and open the screen again from an APNS - like answer a call from APNS. Therefore I would like to just lock the screen without a certain amount of time, so that I can unlock it by swiping on the push notification. I know there is in AppiumDriver the lockScreen(int seconds) but I just want to implement lockScreen() method. Any of you have an idea how to do that? How I could solve that with Apple script or with Appium