I have a remote_form_for with :loading and :loaded specified like so: <% remote_form_for @some_object, :loading => "document.body.style.cursor = ''wait''", :loaded => "document.body.style.cursor = ''default''" do |f| %> ... <% end %> So I want to display the "wait" icon until the form returns a result and then change it back to normal. My problem is that this works great in development environment, but not in testing. Pretend that Ajax request returned some error messages, so the form does not get redrawn. So if the user submits the form a few more times eventually :loaded will not be called and the user is stuck with the hourglass "wait" icon. Sometimes :loaded doesn''t get called the first time the form is submitted. This only happens in test environment and thus my selenium tests fail. Any clues? -- Posted via http://www.ruby-forum.com/.