Capybara doesn't recognize dynamically added DOM elements?
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]"). 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? Thanks in advance! ==Edit== Currently trying my luck with selenium's: wait_for_element method. ==Edit== I keep getting an "undefined method