Is there any way to do the following process in iOS Automation using Appium?
I tried these:
RemoteWebDriver wd = null;
wd.close();
But it just quits the app (just like wd.quit()
) which I am automating and then when I try relaunching -> it starts from the scratch. I am running it on an iPhone simulator.
Appium actually does provide client libraries that allow you to close the app, relaunch it (without starting from scratch), lock the sim, etc.
Libraries to do this exist in C#, Python, and Ruby as well as Java.
Migrating to those WebDrivers rather than selenium's WebDriver is SUPER simple and recommended, as you get access to all the goodies the Appium team added (like shaking your device, complex tapping, locking the device, etc)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With