Class: UIAutomation::NoSuchElement

Inherits:
Object
  • Object
show all
Defined in:
lib/ui_automation.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args, &block) ⇒ void


295
296
297
298
299
300
301
302
# File 'lib/ui_automation.rb', line 295

def method_missing(method, *args, &block)
  if UIAutomation::Element.method_defined?(method)
    return nil
  else
    warn "Tried to call #{method} on NoSuchElement"
    super
  end
end