lib/watir-webdriver/elements/frame.rb in watir-webdriver-0.1.8 vs lib/watir-webdriver/elements/frame.rb in watir-webdriver-0.1.9
- old
+ new
@@ -67,21 +67,26 @@
class FramedDriver
def initialize(element, driver)
@element = element
@driver = driver
end
-
+
def ==(other)
@element == other.element
end
alias_method :eql?, :==
-
+
+ def send_keys(*args)
+ switch!
+ @driver.switch_to.active_element.send_keys(*args)
+ end
+
protected
-
+
def element
@element
end
-
+
private
def method_missing(meth, *args, &blk)
if @driver.respond_to?(meth)
switch!