I have to automate following scenario using swift and XCTestCase on iOS simulator.
- Step1: Launch the app
- Step2: Performa some actions on the app
- Step3: Kill the app
- Step4: Re-launch the app and check if the actions performed are persistent
I found in one of our questions to use the below snippet.
XCUIDevice.shared().press(XCUIDeviceButton.home)
sleep(60)
XCUIDevice.shared().siriService.activate(voiceRecognitionText: "Open {appName}")
It did not work for me, can some one please suggest any different approach.
thanks,