Answers for "how to clear the cache"

17

chrome clear cache for one site

chrome://settings/siteData
Posted by: Guest on June-09-2020
1

how to clear cache

ChromeDriver chromeDriver = new ChromeDriver();

    chromeDriver.manage().deleteAllCookies();
    chromeDriver.get("chrome://settings/clearBrowserData");
    chromeDriver.findElementByXPath("//settings-ui").sendKeys(Keys.ENTER);

    return chromeDriver;
Posted by: Guest on February-04-2021

Browse Popular Code Answers by Language