I just updated to 0.5.2. I then ran a script that was working yesterday and 
got this error:

NoMethodError: undefined method `now' for Watir::Time:Class

... caused by an admittedly kludgy custom method that I've written to 
extend the Browser class...

module Watir
  class Browser
    def *wait_for_ajax*(timeout=5)
      end_time = *Time.now* + timeout
      while self.execute_script("return jQuery.active") > 0
        sleep 0.2
        break if *Time.now* > end_time
      end
      self.wait(timeout + 10)
    end
  end
end

So, my question is: What changed to make this suddenly stop working, and 
how can I fix it so that it works again?

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

Reply via email to