Class: AutomationObject::State::WaitForElements

Inherits:
ActionLoop
  • Object
show all
Defined in:
lib/automation_object/state/hook_actions/wait_for_elements.rb

Overview

Wait for elements hook loop

Instance Attribute Summary

Attributes inherited from ActionLoop

#blue_prints, #composite, #driver, #loops

Instance Method Summary collapse

Methods inherited from ActionLoop

#initialize, #run

Constructor Details

This class inherits a constructor from AutomationObject::State::ActionLoop

Instance Method Details

#single_runObject



9
10
11
12
13
14
15
16
# File 'lib/automation_object/state/hook_actions/wait_for_elements.rb', line 9

def single_run
  blue_prints.each do |hook_element_requirement|
    hook_element_requirement = ElementRequirement.new(driver, hook_element_requirement, 1)
    return false unless hook_element_requirement.run
  end

  true
end