How to help Capybara wait for a node to appear as a result of some asynchronous operation
https://gist.github.com/ameuret/8853011
Using the helper from this Gist, it gets as simple as:
wait_for{page.find('#caddie')}.should have_content(count)
Written by Arnaud Meuret
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#