Class: RubyApp::Element::ExceptionEvent

Inherits:
Event
  • Object
show all
Defined in:
lib/ruby_app/element.rb

Instance Attribute Summary

Attributes inherited from Event

#now, #session, #source

Instance Method Summary collapse

Methods inherited from Event

#add_class, #assert_exists_input, #assert_exists_link, #assert_exists_selector, #assert_exists_selector_for, #assert_exists_selector_value_for, #assert_exists_text, #confirm_refresh_browser, #create_trigger, #destroy_trigger, #execute, from_hash, #go, #log, #process!, #quit!, #refresh_browser, #remove_class, #remove_page, #set_cookie, #show_page, #swipe, #tap_link, #tap_list_item, #tap_list_link, #tap_selector, #to_hash, #today, #update_element, #update_input, #update_style, #update_text, #update_value, #update_value_for

Methods included from Mixins::TranslateMixin

#localize, #translate

Constructor Details

#initialize(exception) ⇒ ExceptionEvent

Returns a new instance of ExceptionEvent.



226
227
228
229
# File 'lib/ruby_app/element.rb', line 226

def initialize(exception)
  super()
  self.confirm_refresh_browser(RubyApp::Element::ExceptionEvent.translate.message(exception.message))
end