How can you send idevicediagnostics restart -u command in appium to restart an ios device? I can send this via the terminal manually, but I would like appium to trigger it during the end of each test suite run. My goal is to reboot my ios devices after each test suite run without having to do it manually everytime. Thanks.


Runtime.getRuntime().exec("idevicediagnostics restart -u "+udid).waitFor(); Thread.sleep(60000);

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.