title: How to manage chrome local storage
body: <p>I'm using <code>Selenium</code> + <code>Python</code> + <code>ChromeDriver</code> to test web application. Web application contains tables with data that could be sorted using various embedded filters. The problem is that after first test executed application saves current state (like which table page is opened, which data sorting method applied) in browser local storage, so that when next test starts data appears already filtered... But I need default data filters for each test and so I need to set default <code>key</code>:<code>value</code> pairs or clear storage before each test case. I found this solution</p>
  
  <pre><code>driver.get('javascript:localStorage.clear();')
  </code></pre>
  
  <p>but get </p>
  
  <pre><code>selenium.common.exceptions.WebDriverException: Message: unknown error:unsupported protocol
  </code></pre>
  
  <p>How can I manage (change or clear) <code>Chrome</code> local storage using <code>Selenium</code>?</p>