lib/watir/element_extensions.rb in commonwatir-1.8.1 vs lib/watir/element_extensions.rb in commonwatir-1.9.0.rc1
- old
+ new
@@ -14,13 +14,9 @@
@element = element
@timeout = timeout
end
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) { @element.present? }
@element.send(m, *args, &block)
end
# Returns element id