Method: RUTL::Element::Element#initialize
- Defined in:
- lib/rutl/element/element.rb
#initialize(element_context) ⇒ Element
Returns a new instance of Element.
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/rutl/element/element.rb', line 9 def initialize(element_context) raise element_context.to_s unless element_context.is_a? ElementContext @context = element_context # Not sure why, but I'm seeing Chrome fail becase the context interface # passed in isn't the same as the application's interface. # This only happens with click test cases, before the click, and # only if that case isn't run first. # The context we're passed is also an instance from as # RUTL::Interface::Chrome, but a different instance. # # Here's the kludge workaround line: @context.interface = $application.interface end |