Class: OLE_QA::Framework::OLELS::Main_Menu

Inherits:
Page show all
Defined in:
lib/olels/pages/main_menu.rb

Overview

The OLE Library System Main Menu Page

Instance Attribute Summary

Attributes inherited from Page

#lines, #url, #wait_on

Attributes inherited from Common_Object

#elements, #functions, #ole

Instance Method Summary collapse

Methods inherited from Page

#lookup, #lookup_url, #open, #set_functions, #set_line, #wait_for_element, #wait_for_elements, #wait_for_page_to_load

Methods inherited from Common_Object

#set_functions

Methods included from Helpers

#browser, #load_yml, #set_element, #set_function

Constructor Details

#initialize(ole_session) ⇒ Main_Menu

Set page URL to OLE Library System URL



19
20
21
22
# File 'lib/olels/pages/main_menu.rb', line 19

def initialize(ole_session)
  url = ole_session.url
  super(ole_session, url)
end

Instance Method Details

#set_elementsObject



24
25
26
27
28
29
# File 'lib/olels/pages/main_menu.rb', line 24

def set_elements
  super
  element(:loan_link)                 {b.link(:text => "Loan")}
  element(:return_link)               {b.link(:text => "Return")}
  element(:editor_link)               {b.link(:text => "Editor")}
end