Class: AutomationObject::BluePrint::HashAdapter::Top
- Defined in:
- lib/automation_object/blue_print/hash_adapter/top.rb
Overview
Top composite
Instance Method Summary collapse
-
#base_url ⇒ String?
Base url to navigate to upon framework creation.
-
#default_screen ⇒ Symbol?
Default screen to be set when framework is created.
-
#screen_transition_sleep ⇒ Numeric
Sleep when transitioning screens.
-
#throttle_driver_methods ⇒ Hash
Driver methods to throttle.
-
#throttle_element_methods ⇒ Hash
Element methods to throttle.
Instance Method Details
#base_url ⇒ String?
Returns base url to navigate to upon framework creation
32 33 34 |
# File 'lib/automation_object/blue_print/hash_adapter/top.rb', line 32 def base_url hash[:base_url] ||= nil end |
#default_screen ⇒ Symbol?
Returns default screen to be set when framework is created
37 38 39 40 41 42 43 44 45 46 |
# File 'lib/automation_object/blue_print/hash_adapter/top.rb', line 37 def default_screen default_screen = hash[:default_screen] case default_screen when Symbol, String return default_screen.to_sym else return nil end end |
#screen_transition_sleep ⇒ Numeric
Returns sleep when transitioning screens
49 50 51 |
# File 'lib/automation_object/blue_print/hash_adapter/top.rb', line 49 def screen_transition_sleep hash[:screen_transition_sleep] ||= 0 end |
#throttle_driver_methods ⇒ Hash
Returns driver methods to throttle
54 55 56 |
# File 'lib/automation_object/blue_print/hash_adapter/top.rb', line 54 def throttle_driver_methods hash[:throttle_driver_methods] ||= {} end |
#throttle_element_methods ⇒ Hash
Returns element methods to throttle
59 60 61 |
# File 'lib/automation_object/blue_print/hash_adapter/top.rb', line 59 def throttle_element_methods hash[:throttle_element_methods] ||= {} end |