clear browser history code example
Example 1: history delete
Just check the enumeration of your commands history and then delete them:
history -d 7 #Deletes seventh command in your history list
Example 2: chrome refresh cache
CTRL+F5 : to refresh the page by clearing GG chrome cache.
Example 3: how to clear browser history
ChromeDriver chromeDriver = new ChromeDriver();
chromeDriver.manage().deleteAllCookies();
chromeDriver.get("chrome://settings/clearBrowserData");
chromeDriver.findElementByXPath("//settings-ui").sendKeys(Keys.ENTER);
return chromeDriver;