def resynchronized(&block)
      old_controller = @webclient.ajaxController
      @webclient.setAjaxController(::HtmlUnit::NicelyResynchronizingAjaxController.new)
      yield self
      @webclient.setAjaxController(old_controller)
    end
def resynchronized(&block)
      old_controller = @webclient.ajaxController
      @webclient.setAjaxController(::HtmlUnit::NicelyResynchronizingAjaxController.new)
      yield self
      @webclient.setAjaxController(old_controller)
    end
Allows you to temporarily switch to HtmlUnit's NicelyResynchronizingAjaxController
 to resynchronize ajax calls.

   @browser.resynchronized do |b|
     b.link(:id, 'trigger_ajax_call').click
   end

 @yieldparam [Celerity::Browser] browser The current browser object.
 @see Celerity::Browser#new for how to configure the browser to always use this.