iOS Automation Appium: How to lock screen for iPhone real device without a duration?

别等时光非礼了梦想. 提交于 2019-12-25 07:46:39

问题



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 Driver?
thanks a lot
Jules


回答1:


This is the desired behavior. The locking-waiting-unlocking is necessary for iOS, where it is the only way to do any locking. For Android it should just lock. If you want it to unlock, you can call unlock.



来源:https://stackoverflow.com/questions/36568028/ios-automation-appium-how-to-lock-screen-for-iphone-real-device-without-a-durat

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!