My scenario is, I'm switching from one app to another in an Android phone.
While switching from one app to the other, I want to clear all data or do a hard reset of the app I'm switching from. Also before the new app starts (using
driver.activateapp) I want all data to be cleared.
driver.resetapp but, it only reets the first app and not the next one which I'm opening.
How can I do this?