Last Updated: February 25, 2016
·
501
· arnaudm

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)