title: Selenium Java~ Not deleting cookies as expected
body: <p>I am trying to automate testing for a webapp using the Selenium Java/Firefox Eclipse plugin.
  I am trying to make a payment and then delete the cookies, to remove all the stored information. For some reason this doesnt not work.</p>
  
  <pre><code>public void validationCards(BufferedWriter out){
      outFile = out;
      ArrayList&lt;String&gt; methodList = new ArrayList&lt;String&gt;();
      methodList.add("validationVisaFrench");
      methodList.add("validationMCFrench");
      methodList.add("validationDiscoverFrench");
      methodList.add("validationDinerClubFrench");
      methodList.add("validationJCBFrench");
      Method method = null;
  
      for(String testToRun:methodList){
          try{
              method = this.getClass().getMethod(testToRun);
          }catch(NoSuchMethodException e){
              System.out.println("This failed horribly");
              e.printStackTrace();
          }catch(RuntimeException ex){
              ex.printStackTrace();
          }catch (Exception e) {
              e.printStackTrace();
          }
  
          try{
              PPSCTests tempObj = this;
              this.testDriver.manage().deleteAllCookies();
              method.invoke(tempObj);
              this.testDriver.manage().deleteAllCookies();
          }catch (Exception e) {
              System.out.println("Cant invoke method for shits and giggles");
              e.printStackTrace();
          }
      }
  }
  </code></pre>
  
  <p>This is a sample of one of the tests I am trying to run:</p>
  
  <pre><code>public void validationMCFrench(){
      System.out.println("MC French Stored Card");
      this.testDriver.manage().deleteAllCookies();
      payment("5555555555554444", "frenchQuery");
  
      testSelenium.waitForPageToLoad("20000");
      String source = Jsoup.parse(testDriver.getPageSource()).text();
      System.out.println("validationMCFrench: "+source);
      successOrFail(source, "validationMCFrench", "Example");
  
      this.testDriver.manage().deleteAllCookies();
  }
  </code></pre>
  
  <p>But it doesnt seem like any cookies are actually deleted. I am kinda stuck. Any help would be a appreciated.</p>