I need to close the app and relaunch it at the same position where i closed it, for this am using closeApp and launchApp methods. But when i launch the app, it is launching the app from beginning. I tried with noReset and fullReset options. Am using appium 1.2.7 and ios 11.2 with iPhone 7 simulator.In android am able to achieve this using noReset, is this possible in ios.
Can any one suggest?
Thanks in advance.
The only way to do what you want is saving your session_id, and when you launch a new test you start at the end point of the test executed before...
What you have to do is to Override Appium constructor and start_session:
Python class code:
Python implementation code:
Java class code:
Java implementation code:
I know python code works perfectly because is the one I use everytime in my tests. I am not 100% sure Java code will work perfectly because I made it without an IDE.
Hope it helps