Method: Selenium::Client::Extensions#wait_for_ajax
- Defined in:
- lib/selenium/client/extensions.rb
#wait_for_ajax(options = {}) ⇒ Object
These for all Ajax request to finish (Only works if you are using prototype, the wait happens in the browser)
27 28 29 30 |
# File 'lib/selenium/client/extensions.rb', line 27 def wait_for_ajax(={}) builder = JavascriptExpressionBuilder.new active_javascript_framework() wait_for_condition builder.no_pending_ajax_requests.script, [:timeout_in_seconds] end |