class OLE_QA::Framework::OLELS::Staff_Upload

The OLE Library System Staff Upload page, accessible from the OLE Financial System main menu. @note THIS PAGE IS NO LONGER ACTIVE AS OF OLE 1.5 M1 r16954.

Use Batch Process for EOCR uploads instead.

Public Class Methods

new(ole_session) click to toggle source
Calls superclass method OLE_QA::Framework::Page::new
# File lib/olels/pages/staff_upload.rb, line 21
def initialize(ole_session)
  url = ole_session.url + 'portal.do?channelTitle=Staff%20Upload&channelUrl='
  url += ole_session.url + 'ole-kr-krad/staffuploadcontroller?viewId=StaffUploadView&methodToCall=start'
  super(ole_session, url)
end

Public Instance Methods

set_elements() click to toggle source

Set elements for Staff upload screen.

Calls superclass method OLE_QA::Framework::Page#set_elements
# File lib/olels/pages/staff_upload.rb, line 28
def set_elements
  super
  element(:title)                   {browser.h1(:class => 'uif-headerText').span}
  element(:marc_field)              {browser.input(:id => "StaffUploadView-marcFileUpload_control").to_subtype}
  element(:edi_field)               {browser.input(:id => "StaffUploadView-ediFileUpload_control").to_subtype}
  element(:profile_selector)        {browser.select_list(:id => "StaffUploadView-agenda_control")}
  element(:description_field)       {browser.input(:id => "StaffUploadView-agendaDescription_control").to_subtype}
  element(:upload_button)           {browser.button(:id => "uploadButton")}
  element(:cancel_button)           {browser.button(:id => "cancelButton")}
  element(:load_reports_button)     {browser.button(:id => "loadReportsButton")}
  element(:message)                 {browser.div(:id => 'MessageFieldSection').span}
end
set_functions() click to toggle source

Add commonly-used functions for staff upload screen.

Calls superclass method OLE_QA::Framework::Page#set_functions
# File lib/olels/pages/staff_upload.rb, line 48
def set_functions
  super
  # Clicks the upload button and waits for a message to appear.
  # - Returns the text of the upload message.
  function(:upload)                 {upload_button.click ; wait_for_page_to_load ; message.when_present.text.strip }
end
wait_for_elements() click to toggle source

Wait for title to appear.

# File lib/olels/pages/staff_upload.rb, line 42
def wait_for_elements
  @wait_on << :title
  super
end