title: StaleElementReferenceError with Selenium with content already loaded
body: <p>I'm using Capybara with Ruby 1.9.3 using the selenium driver in order to get information off a website. After clicking through a couple of pages I visit the page I want and I put:</p>
  
  <pre><code> all(:css, 'td').each { |td| a_info &lt;&lt; td }
   a_info.each {|t| puts t.text }
  </code></pre>
  
  <p>The error I then get after about 10 seconds of waiting:</p>
  
  <pre><code>[remote server] resource://fxdriver/modules/web_element_cache.js:5628:in `unknown': Element not found in the cache - perhaps the page has changed since it was looked up (Selenium::WebDriver::Error::StaleElementReferenceError)
  </code></pre>
  
  <p>Followed a lot more remote server errors. I've given the page 10-30 seconds of sleep time and it's still not loading and when I do print page.html, I see a javascript script and then all the td's that I'm trying to get info from. I know that the error means an element being found is not the current one but it seems like all the elements have been loaded already so I'm not sure why they wouldn't exist anymore. I've scoured the internet for hours looking for this and would love any kind of help from possible solutions to try and the next steps for trying to figure it out. I can provide any extra information needed, just let me know.</p>