Class: Watir::FramedDriver Private
- Defined in:
- lib/watir-webdriver/elements/frame.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
another hack..
Instance Method Summary collapse
- #==(other) ⇒ Object (also: #eql?) private
-
#initialize(element, driver) ⇒ FramedDriver
constructor
private
A new instance of FramedDriver.
- #send_keys(*args) ⇒ Object private
Constructor Details
#initialize(element, driver) ⇒ FramedDriver
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of FramedDriver.
92 93 94 95 |
# File 'lib/watir-webdriver/elements/frame.rb', line 92 def initialize(element, driver) @element = element @driver = driver end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(meth, *args, &blk) ⇒ Object (private)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
115 116 117 118 119 120 121 122 |
# File 'lib/watir-webdriver/elements/frame.rb', line 115 def method_missing(meth, *args, &blk) if @driver.respond_to?(meth) switch! @driver.send(meth, *args, &blk) else @element.send(meth, *args, &blk) end end |
Instance Method Details
#==(other) ⇒ Object Also known as: eql?
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
97 98 99 |
# File 'lib/watir-webdriver/elements/frame.rb', line 97 def ==(other) @element == other.wd end |
#send_keys(*args) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
102 103 104 105 |
# File 'lib/watir-webdriver/elements/frame.rb', line 102 def send_keys(*args) switch! @driver.switch_to.active_element.send_keys(*args) end |