How to do cleaning operation between multiple test cases?


 driver.closeApp();
OR
capabilities.setCapability("noReset","false");

Description

This capability is used when we want to reset app state between sessions (Android: uninstall app before new session). Its default Value is False.
OR
Using closeApp() method we can close the current application and try to relunch in the next step.

Leave a Reply

Your email address will not be published. Required fields are marked *