Answers for "how to clear browser cache in selenium webdriver"

1

how to clear cache selenium

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

Code answers related to "how to clear browser cache in selenium webdriver"

Browse Popular Code Answers by Language