Sha256: 9eb33f4eab306aea9405a440cab2776762a56e2b553640b7e3348328f6520ee8
Contents?: true
Size: 321 Bytes
Versions: 2
Compression:
Stored size: 321 Bytes
Contents
# This code courtesy of art.ly # http://www.webcitation.org/68jfoNAWt def wait_for_dom(timeout = Capybara.default_wait_time) uuid = SecureRandom.uuid page.find("body") page.evaluate_script <<-EOS _.defer(function() { $('body').append("<div id='#{uuid}'></div>"); }); EOS page.find("##{uuid}") end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
answers-core-0.0.0.2 | spec/support/wait_for_dom_helper.rb |
answers-core-0.0.0 | spec/support/wait_for_dom_helper.rb |