title: Capybara doesn't recognize dynamically added DOM elements?
body: <p>I seem to be having trouble testing the slick javascript things I do with jQuery when using Capybara and Selenium.  The expected behavior is for a form to be dynamically generated when a user clicks on the link "add resource".  Capybara will be able to click the link, but fails to recognize the new form elements (i.e. "resource[name]").</p>
  
  <p>Is there a way to reload the DOM for Capybara, or is there some element of this gem that I just haven't learned of yet?</p>
  
  <p>Thanks in advance!</p>
  
  <p><strong>==Edit==</strong></p>
  
  <p>Currently trying my luck with selenium's:</p>
  
  <pre><code>wait_for_element 
  </code></pre>
  
  <p>method.</p>
  
  <p><strong>==Edit==</strong></p>
  
  <p>I keep getting an "undefined method 'wait_for_element` for nill class" when attempting to do the following:</p>
  
  <pre><code>@selenium.wait_for_element
  </code></pre>
  
  <p>It appears that that specific method, or perhaps <code>wait_for</code> with a huge selector accessing the DOM element I expect is the correct course of action, but now trying to get the selenium session is starting to be a huge headache.</p>