Class: OLE_QA::Framework::OLELS::Main_Menu
- Inherits:
-
Page
- Object
- Common_Object
- Page
- OLE_QA::Framework::OLELS::Main_Menu
- Defined in:
- lib/olels/pages/main_menu.rb
Overview
The OLE Library System Main Menu Page
Instance Attribute Summary
Attributes inherited from Page
Attributes inherited from Common_Object
Instance Method Summary collapse
-
#initialize(ole_session) ⇒ Main_Menu
constructor
Set page URL to OLE Library System URL.
- #set_elements ⇒ Object
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
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_elements ⇒ Object
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 |