title: Delete Cookies on Mobile Safari using Selenium
body: <p>I'm writing UI automation for a web application which runs on iOS and Android. These tests run on remote Phone devices. So far, the tests with the same URLs run successfully for Android but they fail on iOS devices. </p>
  
  <p><strong>Root Cause:</strong> 
  I have a test suite where each test in the suite has to pass the authentication workflow and navigate to the Page Under Test. When I run the test on iPhone Safari, the first test executes fine. When the second test is started, the initial test URL directly lands on the home page (skipping the authentication part and driver still searches for Username, password fields) because the cookies are already stored on the browser.</p>
  
  <p>Using <code>driver.manage.deleteAllCookies()</code> doesn't help.</p>
  
  <p>Is there any way I can delete the cookies stored in Safari browser with automation?</p>
  
  <p>P.S: The test suite works absolutely fine for Android platform.</p>
  
  <p><strong>Technical Details:</strong></p>
  
  <ol>
  <li><p>Test Framework - Selenium</p></li>
  <li><p>Mobile Automation Framework - Appium</p></li>
  <li><p>Device: iPhone - version 11 (internal tools setup on the cloud for test suite execution)</p></li>
  <li><p>Browser: Safari</p></li>
  </ol>