Skip to main content

HybridClearCache

Description

Use this command to clear the device browser's cache.

  • Chrome: On non-iOS only. Chrome's cache, cookies, and user history data are cleared.
  • Safari: On iOS only. For this browser both the cookies and the cache are cleared.

Usage

info

Replace <server> with the appropriate URL.

HybridClearCache

DesiredCapabilities dc = new DesiredCapabilities();
driver = new AndroidDriver(new URL("<server>"), dc);
seetest = new SeeTestClient(driver);
dc.setCapability(MobileCapabilityType.UDID, "<deviceid>");

...
...

//Clear the browser cache
seetest.hybridClearCache();