title: Selenium can't locate previously created IWebElement after navigating to the page for a second time
body: <p>I have a sample test with a login page where I want to simulate a successful login, then logout and finally unsuccessful login with wrong password. When I navigate to the login page for the first time I use the following code to find the element:  </p>
  
  <p><code>IWebElement username = wait.Until((x) =&gt; { return x.FindElement(By.Id("input-1")); });</code></p>
  
  <p>Then later after clearing cookies I navigate back to the same login page and I try to use the same element:  </p>
  
  <pre><code>//navigating to the login page
  driver.Navigate().GoToUrl(panel);
  
  //Verifying that the page is the one i am looking for
  IWebElement signUp = wait.Until((x) =&gt; { return x.FindElement(By.Id("go_sign_up")); } );
  Assert.IsNotNull(signUp);
  //Try to add some info to username field
  username.SendKeys("blabla");
  </code></pre>
  
  <p>The same element with the same id is present in the page but I get the following error in my test: 
  <code>Message: OpenQA.Selenium.StaleElementReferenceException : stale element reference: element is not attached to the page document</code></p>
  
  <p>Sorry if the information is not enough, its my first time asking a question.</p>