class OLE_QA::Framework::OLELS::Batch_Profile_Lookup
The Batch Process Profile 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_profile_lookup.rb, line 18 def initialize(ole_session) url = ole_session.url + 'portal.do?channelTitle=Batch Process Profile&channelUrl=' url += ole_session.url + 'ole-kr-krad/lookup?methodToCall=start&dataObjectClassName=org.kuali.ole.batch.bo.OLEBatchProcessProfileBo&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_profile_lookup.rb, line 25 def set_elements super element(:create_new,true) {b.link(:text => 'Create New')} element(:profile_name_field) {b.text_field(:id => 'lookup-batchProcessProfileName_control')} element(:profile_description_field) {b.text_field(:id => 'lookup-batchProcessProfileDesc_control')} element(:profile_type_selector) {b.select_list(:id => 'lookup-batchProcessProfileType_control')} element(:krms_profile_selector) {b.select_list(:id => 'lookup-krmsProfileName_control')} element(:search_button) {b.button(:text => /[Ss]earch/)} element(:clear_button) {b.button(:text => /[Cc]lear/)} element(:cancel_button) {b.button(:text => /[Cc]ancel/)} end
set_functions()
click to toggle source
Calls superclass method
OLE_QA::Framework::Page#set_functions
# File lib/olels/pages/batch_profile_lookup.rb, line 43 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 exists in the search results. function(:text_in_results?) {|text| text_in_results(text).present?} # Return the 'Edit' link for a row containing the given text. function(:edit_by_text) {|text| b.a(:xpath => "//table/tbody/tr[td/div/span[contains(text(),'#{text}')]]/td[1]/div/fieldset/div/div/a[contains(text(),'edit')]")} # Return the Batch Process Profile 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[2]/div/span/a")} # Return the value of the Batch Process Profile containing the given text. # @note Replaces :edit_by_text when the lookup is embedded on a batch profile editing screen. 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_profile_lookup.rb, line 37 def wait_for_elements super @wait_on << :profile_name_field @wait_on << :search_button end