title: Python Selenium: element is not attached to the page document error acting strangely
body: <p>Essentially none of the traditional fixes are working. I have tried implicit and explicit waits, and waiting for the element to be clickable. As you can see below, the stack trace is a standard stale element exception, but the line of code beneath it (what throws the error), should be enough to stop the error I would think? Even stranger, the error does not throw consistently. I would be </p>
  
  <pre><code>selenium.common.exceptions.StaleElementReferenceException: Message: stale element reference: element is not attached to the page document
  
  add_account = wait.until(EC.element_to_be_clickable((By.XPATH,"//span[.='Add another account']" )))
  </code></pre>