lib/watir/waiter.rb in commonwatir-1.6.6 vs lib/watir/waiter.rb in commonwatir-1.6.7.rc1

- old
+ new

@@ -1,5 +1,10 @@ +####### +# +# Using Watir::Waiter is DEPRECATED and will be removed in some newer version of Watir! Use Watir::Wait and Watir::ElementExtensions methods instead! +# +####### require 'watir/exceptions' module Watir def wait_until(*args) @@ -35,9 +40,10 @@ @@default_polling_interval = 0.5 @@default_timeout = 60.0 def initialize(timeout=@@default_timeout, polling_interval=@@default_polling_interval) + Kernel.warn "Using Watir::Waiter is DEPRECATED and will be removed in some newer version of Watir! Use Watir::Wait and Watir::ElementExtensions methods instead!" @timeout = timeout @polling_interval = polling_interval @timer = TimeKeeper.new end \ No newline at end of file