title: Element not found in the cache - perhaps the page has changed since it has looked up
body: <p>I have a set of tests in which the first one runs and rest fails. Its just adding a list of items to cart.I have an error: "Element not found in the cache - perhaps the page has changed since it has looked up".
  I tried using the below code which doesnt seem to help.</p>
  
  <pre><code>driver.Manage().Cookies.DeleteAllCookies();
  </code></pre>
  
  <p>Is there any way to clear the cache or get rid of this error.</p>
  
  <p>Code: It stops in this verify method. When I comment out these lines the test runs for all items.</p>
  
  <pre><code>    public bool VerifyItemPresentInCart()
      {
              //Get the cartsize and verify if one item present
              IWebElement cartSize = driver.FindElement(By.CssSelector("div[class='cart-size']&gt;div"));                                             
              string actualMsg = cartSize.Text;
              string expectedMsg = "1";
              VerifyIfTextPresentMethod(expectedMsg,actualMsg);                
              return true;                  
      }
  </code></pre>
  
  <p>Update: The test has common methods and so methods repeat for each item to be added in cart. this is one of those common methods. these methods work for the first item say a phone and adds it to the cart. For the second item when the whole process is repeated i get this error in this method.</p>