Class: Watir::FramedDriver Private
- Inherits:
-
Object
- Object
- Watir::FramedDriver
- Defined in:
- lib/watir-webdriver/elements/iframe.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.
124 125 126 127 |
# File 'lib/watir-webdriver/elements/iframe.rb', line 124 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.
147 148 149 150 151 152 153 154 |
# File 'lib/watir-webdriver/elements/iframe.rb', line 147 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.
129 130 131 |
# File 'lib/watir-webdriver/elements/iframe.rb', line 129 def ==(other) wd == 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.
134 135 136 137 |
# File 'lib/watir-webdriver/elements/iframe.rb', line 134 def send_keys(*args) switch! @driver.switch_to.active_element.send_keys(*args) end |