module AutomationObject::State::CommonElement
Helper module for Element
composite classes
Attributes
active[RW]
Whether or not modal is active
cache[RW]
Public Instance Methods
active?()
click to toggle source
@return [Boolean] screen is active or not
# File lib/automation_object/state/_common_element.rb, line 15 def active? @active ||= false end
method_hook?(name)
click to toggle source
# File lib/automation_object/state/_common_element.rb, line 24 def method_hook?(name) blue_prints.method_hooks.key?(name) end
method_hooks()
click to toggle source
@return [Hash<Hook>] array of Hook
that are defined under the element
# File lib/automation_object/state/_common_element.rb, line 29 def method_hooks return @method_hooks if @method_hooks @method_hooks = {} blue_prints.method_hooks.each do |key, blue_prints| @method_hooks[key] = Hook.new(driver, blue_prints, key, self, location + "[#{key}]") end @method_hooks end
method_to_container(name)
click to toggle source
# File lib/automation_object/state/_common_element.rb, line 44 def method_to_container(name) blue_prints.method_to_container(name) end
reset()
click to toggle source
# File lib/automation_object/state/_common_element.rb, line 19 def reset @active = false self.cache = nil end