Module: SeleniumRecord::Configuration
- Included in:
- Base
- Defined in:
- lib/selenium_record/configuration.rb
Overview
Defines configuration options
Class Attribute Summary collapse
-
.choose_option_max_retries ⇒ Object
Returns the value of attribute choose_option_max_retries.
-
.js_library ⇒ Object
Returns the value of attribute js_library.
-
.objects_module ⇒ Object
Returns the value of attribute objects_module.
Instance Method Summary collapse
-
#so_module(object_type = nil) ⇒ Module
param object_type [Symbol] The object type.
Class Attribute Details
.choose_option_max_retries ⇒ Object
Returns the value of attribute choose_option_max_retries.
8 9 10 |
# File 'lib/selenium_record/configuration.rb', line 8 def choose_option_max_retries @choose_option_max_retries end |
.js_library ⇒ Object
Returns the value of attribute js_library.
8 9 10 |
# File 'lib/selenium_record/configuration.rb', line 8 def js_library @js_library end |
.objects_module ⇒ Object
Returns the value of attribute objects_module.
8 9 10 |
# File 'lib/selenium_record/configuration.rb', line 8 def objects_module @objects_module end |
Instance Method Details
#so_module(object_type = nil) ⇒ Module
param object_type [Symbol] The object type
13 14 15 16 17 18 |
# File 'lib/selenium_record/configuration.rb', line 13 def so_module(object_type = nil) base_module = SeleniumRecord::Configuration.objects_module return base_module unless object_type klass = object_type.to_s.classify.pluralize base_module.const_get(klass) end |