class OLE_QA::Framework::OLELS::Batch_Type_Lookup
The Batch Process Type Lookup
Screen in the OLE Library System
Public Class Methods
new(ole_session)
click to toggle source
Calls superclass method
OLE_QA::Framework::Page::new
# File lib/olels/pages/batch_type_lookup.rb, line 18 def initialize(ole_session) url = ole_session.url + 'portal.do?channelTitle=Batch Process Type&channelUrl=' url += ole_session.url + 'ole-kr-krad/lookup?methodToCall=start&dataObjectClassName=org.kuali.ole.batch.bo.OLEBatchProcessTypeBo&returnLocation=' url += ole_session.url + 'portal.do&hideReturnLink=true&showMaintenanceLinks=true' super(ole_session, url) end
Public Instance Methods
set_elements()
click to toggle source
Calls superclass method
OLE_QA::Framework::OLELS::Lookup#set_elements
# File lib/olels/pages/batch_type_lookup.rb, line 25 def set_elements super element(:id_field) {b.text_field(:id => 'lookup-batchProcessTypeId_control')} element(:name_field) {b.text_field(:id => 'lookup-batchProcessTypeName_control')} element(:type_code_field) {b.text_field(:id => 'lookup-batchProcessTypeCode_control')} element(:active_yes) {b.radio(:id => 'lookup-active_control_0')} element(:active_no) {b.radio(:id => 'lookup-active_control_1')} element(:active_both) {b.radio(:id => 'lookup-active_control_2')} element(:search_button) {b.button(:text => /[Ss]earch/)} element(:clear_button) {b.button(:text => /[Cc]lear/)} element(:cancel_button) {b.button(:id => /[Cc]lose/)} end
set_functions()
click to toggle source
Calls superclass method
OLE_QA::Framework::Page#set_functions
# File lib/olels/pages/batch_type_lookup.rb, line 44 def set_functions super # If the given text exists in a TD element in the search results, return that element. function(:text_in_results) {|text| b.td(:xpath => "//table/tbody/tr/td[div/span[contains(text(),'#{text}')]]")} # Return true or false based on whether the given text is found in the search results. function(:text_in_results?) {|text| text_in_results(text).present?} # Return the Batch Process Type ID link for a row containing the given text. function(:id_by_text) {|text| b.a(:xpath => "//table/tbody/tr[td/div/span[contains(text(),'#{text}')]]/td/div[starts-with(@id,'result-batchProcessTypeId')]/span/a")} # Return the 'return value' link for a row containing the given text. function(:return_by_text) {|text| b.a(:xpath => "//table/tbody/tr[td/div/span[contains(text(),'#{text}')]]/td/div/fieldset/div/div/a[contains(text(),'return value')]")} end
wait_for_elements()
click to toggle source
Calls superclass method
OLE_QA::Framework::OLELS::Lookup#wait_for_elements
# File lib/olels/pages/batch_type_lookup.rb, line 38 def wait_for_elements super @wait_on << :id_field @wait_on << :search_button end