title: clearing cache on chrome using web driver
body: <p>We are testing web app using Jmeter selenium webdriver.
  as HTTP manager doenst work we were trying to clear the cache using below Code. Due to some reason this is failling. We need clear cache mechanism to be implemented. Besides this we also tried incognito mode many other options as gooogle suggests without luck. 
  We are also trying to hit (Sendkeys) Enter after lauching browser as (chrome://settings/clearBrowserData) it on clear browsing window. Driver.close() will not help us as per the scenario needs.</p>
  
  <p>Please throw some ideas / suggest how to execute Enter after browser launch. </p>
  
  <p>Really appreciate your time and help.</p>
  
  <pre><code>    var pkg=JavaImporter(org.openqa.selenium,org.openqa.selenium.support.ui) //import java selenium packages
  var Thr=JavaImporter(java.lang.Thread) //import Thread sleep packages
  var wait = new pkg.WebDriverWait(WDS.browser,30) //import WebDriverWait Package
  WDS.browser.get('chrome://settings/clearBrowserData')
  Thr.Thread.sleep(5000)
  WDS.browser.switchTo().frame("settings")
  var ChkBox = WDS.browser.findElement(pkg.By.xpath('//*[@id="delete-form-data-checkbox"]'))
  ChkBox.click()
  ////*[@id="clear-browser-data-overlay"]/div[4]
  //wait.until(pkg.ExpectedConditions.presenceOfElementLocated(pkg.By.xpath('//*[@id="clear-browser-data-commit"]')))
  //wait.until(pkg.ExpectedConditions.presenceOfElementLocated(pkg.By.xpath('//*[@id="clear-browser-data-overlay"]/div[4]')))
  var ClearCache = WDS.browser.findElement(pkg.By.xpath('//*[@id="clear-browser-data-commit"]'))
  ClearCache.click()
  wait.until(pkg.ExpectedConditions.presenceOfElementLocated(pkg.By.xpath('//*[@id="privacy-section"]/h3')))
  </code></pre>