1

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.

I tried driver.resetapp but, it only reets the first app and not the next one which I'm opening.

How can I do this?

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.