class OLE_QA::Framework::OLELS::Batch_Profile
The base Batch Process Profile Page
in the OLE Library System
Public Class Methods
new(ole_session)
click to toggle source
Linking directly with a ‘create new’ link returns a stacktrace or HTTP 500.
The link included in the :url attribute is for the lookup screen.
Calls superclass method
OLE_QA::Framework::Page::new
# File lib/olels/common/batch_profile.rb, line 20 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::Page#set_elements
# File lib/olels/common/batch_profile.rb, line 27 def set_elements super element(:title) {b.h1(:class => 'uif-headerText').span(:class => 'uif-headerText-span')} element(:description_field) {b.text_field(:xpath => "//tr/th[descendant::label[contains(text(),'Description:')]]/following-sibling::td[1]/descendant::input[1]")} element(:explanation_field) {b.text_field(:xpath => "//tr/th[descendant::label[contains(text(),'Explanation:')]]/following-sibling::td[1]/descendant::textarea[1]")} element(:org_doc_number_field) {b.text_field(:xpath => "//tr/th[descendant::label[contains(text(),'Organization Document Number:')]]/following-sibling::td[1]/descendant::input[1]")} element(:document_id) {b.div(:data_label => 'Document Number')} element(:initiator_id) {b.div(:data_label => 'Initiator Network Id')} element(:document_status) {b.div(:data_label => 'Document Status')} element(:creation_timestamp) {b.div(:data_label => 'Creation Timestamp')} element(:batch_profile_name_field) {b.text_field(:id => 'mainSection-MaintenanceView-batchProcessProfileName_control')} element(:batch_process_type_field) {b.text_field(:id => 'mainSection-MaintenanceView-batchProcessProfileType_control')} element(:batch_process_type_icon) {batch_process_type_field.parent.input(:index => 1)} element(:submit_button) {b.button(:text => 'submit')} element(:save_button) {b.button(:id => 'usave')} element(:cancel_button) {b.a(:id => 'ucancel')} element(:approve_button) {b.button(:text => /([Bb]lanket )?[Aa]pprove/)} element(:message) {b.li(:class => 'uif-infoMessageItem')} element(:messages) {b.lis(:class => 'uif-infoMessageItem')} end
wait_for_elements()
click to toggle source
Calls superclass method
OLE_QA::Framework::Page#wait_for_elements
# File lib/olels/common/batch_profile.rb, line 48 def wait_for_elements super @wait_on << :batch_profile_name_field @wait_on << :save_button end