Method: AutomationObject::State::Hook#after

Defined in:
lib/automation_object/state/hook.rb

#afterBoolean?

Runs the after hook

Returns:

  • return nil unless there is a hook, otherwise boolean depending on success of hook



42
43
44
45
46
47
48
49
# File 'lib/automation_object/state/hook.rb', line 42

def after
  return nil if blue_prints.after.empty?

  hook_action = HookAction.new(driver,
                               blue_prints.after,
                               :hook_action, self, location + '[hook_action]')
  hook_action.run
end