How to clear cache and history of a mobile app in android using (Groovy scripting) Katalon Studio.
Mobile.startExistingApplication(GlobalVariable.ApplicationId)
I tried using the below code
MobileDriver driver = MobileDriverFactory.getDriver()
driver.resetApp();
Mobile.startExistingApplication(GlobalVariable.ApplicationId)
Do I need to use any other lines of code for clearing it so