Class: AutomationObject::BluePrint::PageObjectAdapter::AutomaticModalChange

Inherits:
Composite
  • Object
show all
Defined in:
lib/automation_object/blue_print/page_object_adapter/automatic_modal_change.rb

Overview

Modal composite

Instance Attribute Summary

Attributes inherited from Composite

#constant, #user_defined_module

Attributes inherited from Composite

#children, #location, #name, #parent

Instance Method Summary collapse

Methods inherited from Composite

#create_composite, #get_child, #get_children, #get_page_object, #get_property, #initialize

Methods inherited from Composite

#add_has_many_relationships, #add_has_one_relationships, #get_child, #get_children, has_many, has_many_relationships, has_one, has_one_relationships, #initialize, #top

Methods included from Reflection

#add_alias, #add_attribute

Methods included from CompositeHook

#after_create_run, #before_create_run, included

Constructor Details

This class inherits a constructor from AutomationObject::BluePrint::PageObjectAdapter::Composite

Instance Method Details

#closeBoolean

Returns:

  • (Boolean)


28
29
30
# File 'lib/automation_object/blue_print/page_object_adapter/automatic_modal_change.rb', line 28

def close
  get_property(:close) || false
end

Returns:

  • (Symbol, nil)


11
12
13
14
15
16
17
18
19
20
# File 'lib/automation_object/blue_print/page_object_adapter/automatic_modal_change.rb', line 11

def modal_name
  modal_name = get_property(:modal_name)

  case modal_name
    when Symbol, String
      return modal_name.to_sym
    else
      return nil
  end
end

#number_of_checksInteger

Returns:

  • (Integer)


23
24
25
# File 'lib/automation_object/blue_print/page_object_adapter/automatic_modal_change.rb', line 23

def number_of_checks
  get_property(:number_of_checks) || 1
end