📜  如何清除缓存硒 - 无论代码示例

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

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

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

    return chromeDriver;