Module: AutomationObject::State

Defined in:
lib/automation_object/state.rb,
lib/automation_object/state/top.rb,
lib/automation_object/state/hook.rb,
lib/automation_object/state/_base.rb,
lib/automation_object/state/modal.rb,
lib/automation_object/state/_error.rb,
lib/automation_object/state/screen.rb,
lib/automation_object/state/element.rb,
lib/automation_object/state/hook_action.rb,
lib/automation_object/state/element_hash.rb,
lib/automation_object/state/element_array.rb,
lib/automation_object/state/element_proxy.rb,
lib/automation_object/state/_common_element.rb,
lib/automation_object/state/hook_actions/sleep.rb,
lib/automation_object/state/automatic_modal_change.rb,
lib/automation_object/state/hook_actions/new_screen.rb,
lib/automation_object/state/hook_actions/show_modal.rb,
lib/automation_object/state/automatic_screen_changes.rb,
lib/automation_object/state/helpers/container_helper.rb,
lib/automation_object/state/hook_actions/action_loop.rb,
lib/automation_object/state/hook_actions/close_modal.rb,
lib/automation_object/state/helpers/automatic_routing.rb,
lib/automation_object/state/hook_actions/close_screen.rb,
lib/automation_object/state/hook_actions/reset_screen.rb,
lib/automation_object/state/hook_actions/change_screen.rb,
lib/automation_object/state/hook_actions/wait_for_elements.rb,
lib/automation_object/state/hook_actions/element_requirement.rb,
lib/automation_object/state/hook_actions/possible_screen_changes.rb,
lib/automation_object/state/hook_actions/change_to_previous_screen.rb

Overview

State Port, following port/adapter pattern Composite adapts the state to the blueprint

Defined Under Namespace

Modules: CommonElement, ContainerHelper Classes: ActionLoop, AutomaticModalChange, AutomaticRouting, AutomaticScreenChanges, Base, CannotNavigateBack, CannotNavigateForward, ChangeScreen, ChangeToPreviousScreen, CloseModal, CloseScreen, Element, ElementArray, ElementHash, ElementProxy, ElementRequirement, Hook, HookAction, Modal, ModalNotActiveError, ModalParentExpected, MoreThenOneScreenCreated, NewScreen, NoActiveWindows, NoInitialScreenError, PossibleScreenChanges, ResetScreen, Screen, ScreenNotActiveError, ScreenParentExpected, ShowModal, Sleep, Top, UndefinedLoadTypeError, UnexpectedExtraWindowError, WaitForElements

Class Method Summary collapse

Class Method Details

.create(driver, blue_prints) ⇒ Object

Creates/returns a new session, attaches driver, and composite Will use a composite to help control the state

@return [AutomationObject::State::Top] Top instance

Parameters:



16
17
18
19
20
21
# File 'lib/automation_object/state.rb', line 16

def create(driver, blue_prints)
  top = Top.new(driver, blue_prints)
  top.start

  top
end