HybridClearCache(ClearCookies, ClearCache)
Description
Clears the browser's cache.
- Chrome: On non-iOS only. Chrome's cache, cookies and users history data will be cleared.
- Safari: On iOS only. For this browser both the cookies and the cache will be cleared.
Parameters
Parameters are no longer effective on Chrome nor on Safari. Cookies and Cache will always be deleted.
Starting from the next version of seeTest, this command's signature will be deprecated, and the new method's signature will not receive any input parameters.
Scenario
In this example we will demonstrate how this command clears the chrome browser history cache and stored data .
- Go to Settings->Apps ->Chrome, and see the app cache before performing the cache clear command:
and, under Manage Space you can see the app data:
- Run :
client.hybridClearCache(true, true);
- The result:
Code Examples
Java Example
client.setDevice("adb:Nexus7"); client.hybridClearCache(true, true);