ApplicationClearData
Description
Use this command to clear the entire application data and cache from the device it is installed on during runtime.
Parameters
Name | Type | Description |
---|---|---|
BundleId (iOS) / Application Activity (Android) | string | Application whose data you want to clear |
Example
info
Replace <server> with the appropriate URL.
- Public Continuous Testing Cloud - https://cloud.seetest.io/wd/hub/.
- Dedicated Continuous Testing Cloud environment - Your own domain. For example: https://company.experitest.com/wd/hub/
- On-premises Continuous Testing Cloud environment - Your designated URL. For example: https://company.com/wd/hub
Usage of ApplicationClearData Command
driver = new AndroidDriver(new URL("<server>"), dc);
seetest = new SeeTestClient(driver);
...
...
seetest.applicationClearData("com.experitest.ExperiBank/.LoginActivity");