class Watir::BaseDecorator
Public Class Methods
new(element, timeout, message = nil)
click to toggle source
# File lib/watir-webdriver/wait.rb, line 99 def initialize(element, timeout, message = nil) @element = element @timeout = timeout @message = message end
Public Instance Methods
method_missing(m, *args, &block)
click to toggle source
# File lib/watir-webdriver/wait.rb, line 109 def method_missing(m, *args, &block) unless @element.respond_to?(m) raise NoMethodError, "undefined method `#{m}' for #{@element.inspect}:#{@element.class}" end Watir::Wait.until(@timeout, @message) { wait_until } @element.__send__(m, *args, &block) end
respond_to?(*args)
click to toggle source
# File lib/watir-webdriver/wait.rb, line 105 def respond_to?(*args) @element.respond_to?(*args) end