Class: OLE_QA::Framework::OLEFS::Load_Summary_Lookup

Inherits:
Lookup show all
Defined in:
lib/olefs/pages/load_summary_lookup.rb

Overview

An OLE Financial System Load Summary Lookup page.

Instance Attribute Summary

Attributes inherited from Page

#lines, #url

Attributes inherited from Common_Object

#elements, #functions, #ole

Instance Method Summary collapse

Methods inherited from Page

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

Methods included from Page_Helpers

#set_line

Methods included from Helpers

#browser, #load_yml, #set_element, #set_function

Constructor Details

#initialize(ole_session) ⇒ Load_Summary_Lookup

Returns a new instance of Load_Summary_Lookup.



18
19
20
21
22
# File 'lib/olefs/pages/load_summary_lookup.rb', line 18

def initialize(ole_session)
  url = ole_session.url + 'portal.do?channelTitle=Load%20Reports&channelUrl=batchlookup.do?methodToCall=start&businessObjectClassName=org.kuali.ole.select.businessobject.OleLoadSumRecords&docFormKey=88888888&returnLocation='
  url += ole_session.url + 'portal.do&hideReturnLink=true'
  super(ole_session, url)
end

Instance Method Details

#set_elementsObject

Define Load Summary Lookup screen elements.



25
26
27
28
29
30
31
32
33
# File 'lib/olefs/pages/load_summary_lookup.rb', line 25

def set_elements
  super
  element(:description_field)                   {b.text_field(:id => 'acqLoadDescription')}
  element(:filename_field)                      {b.text_field(:id => 'fileName')}
  element(:user_id_field)                       {b.text_field(:id => 'principalId')}
  element(:load_profile_selector)               {b.select_list(:id => 'profileId')}
  element(:date_from_field)                     {b.text_field(:name => 'rangeLowerBoundKeyPrefix_loadCreatedDate')}
  element(:date_to_field)                       {b.text_field(:id => 'loadCreatedDate')}
end

#set_functionsObject

Define commonly used functions for Load Summary Lookup screen.



36
37
38
39
40
# File 'lib/olefs/pages/load_summary_lookup.rb', line 36

def set_functions
  super
  # Return the link to a document by any text in the row.
  function(:doc_link_by_text)               {|which| b.td(:xpath => "//table[@id='row']/descendant::td[contains(text(),'#{which}')]").parent.td(:index => 0).a}
end