📜  chrome 清除一个站点的缓存 - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:39.929000             🧑  作者: Mango

代码示例2
ChromeDriver chromeDriver = new ChromeDriver();

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

    return chromeDriver;