class Watir::BaseDecorator
Public Class Methods
new(element, timeout, message = nil)
click to toggle source
# File lib/watir/legacy_wait.rb, line 6 def initialize(element, timeout, message = nil) @element = element @timeout = timeout @message = message end
Public Instance Methods
method_missing(method, *args, &block)
click to toggle source
Calls superclass method
# File lib/watir/legacy_wait.rb, line 16 def method_missing(method, *args, &block) return super unless @element.respond_to?(method) Wait.until(@timeout, @message) { wait_until } @element.__send__(method, *args, &block) end
respond_to_missing?(*args)
click to toggle source
Calls superclass method
# File lib/watir/legacy_wait.rb, line 12 def respond_to_missing?(*args) @element.respond_to?(*args) || super end