Module: SeleniumRecord::Configuration

Included in:
Base
Defined in:
lib/selenium_record/configuration.rb

Overview

Defines configuration options

Class Attribute Summary collapse

Instance Method Summary collapse

Class Attribute Details

.choose_option_max_retriesObject

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_libraryObject

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_moduleObject

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

Returns:

  • (Module)

    The module containing classes of 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