title: Cucumber - Deleting Cache and Cookies
body: <p>I am using Cucumber to perform automated tests. I am running two features during a run where in I enter my credentials to perform an action in the website. When second feature is executed I will have to re-enter the same credentials but the browser had already stored my credential previously making the script to actually skip/fail at this step. I have shared my script below. Please advice what can be the solution.</p>
  
  <p>I tried deleting cookies but still the problem persists.</p>
  
  <pre><code>When /^I clear cookies$/ do
    browser = Capybara.current_session.driver.browser
    browser.manage.delete_all_cookies
  end
  </code></pre>