Class: OLE_QA::Framework::OLELS::Renewal

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

Overview

The renewal popup page on the loan screen in the OLE Library System.

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_line, #wait_for_element, #wait_for_elements, #wait_for_page_to_load

Methods included from Helpers

#browser, #load_yml, #set_element, #set_function

Constructor Details

#initialize(ole_session) ⇒ Renewal

Returns a new instance of Renewal.



18
19
20
21
22
23
# File 'lib/olels/pages/renewal.rb', line 18

def initialize(ole_session)
  # Initialize to the loan screen URL as this page is not accessed independently.
  url = ole_session.url + 'portal.do?channelTitle=Loan&channelUrl='
  url += ole_session.url + 'ole-kr-krad/loancontroller?viewId=PatronItemView&methodToCall=start'
  super(ole_session, url)
end

Instance Method Details

#set_elementsObject



25
26
27
# File 'lib/olels/pages/renewal.rb', line 25

def set_elements
  super
end

#set_functionsObject



29
30
31
# File 'lib/olels/pages/renewal.rb', line 29

def set_functions
  super
end