Class: OLE_QA::Framework::OLELS::Batch_Process
- Inherits:
-
Page
- Object
- Common_Object
- Page
- OLE_QA::Framework::OLELS::Batch_Process
- Defined in:
- lib/olels/pages/batch_process.rb
Overview
The Batch Process control screen in the OLE Library System
Instance Attribute Summary
Attributes inherited from Page
Attributes inherited from Common_Object
Instance Method Summary collapse
-
#initialize(ole_session) ⇒ Batch_Process
constructor
Define URL in initialize.
- #set_elements ⇒ Object
- #wait_for_elements ⇒ Object
Methods inherited from Page
#lookup, #lookup_url, #open, #set_functions, #wait_for_element, #wait_for_page_to_load
Methods included from Page_Helpers
Methods inherited from Common_Object
Methods included from Helpers
#browser, #load_yml, #set_element, #set_function
Constructor Details
#initialize(ole_session) ⇒ Batch_Process
Define URL in initialize.
19 20 21 22 23 |
# File 'lib/olels/pages/batch_process.rb', line 19 def initialize(ole_session) url = ole_session.url + 'portal.do?channelTitle=Batch Process&channelUrl=' url += ole_session.url + 'ole-kr-krad/oleBatchProcessDefinitionController?viewId=OLEBatchProcessDefinitionView&methodToCall=startBatch&command=initiate&documentClass=org.kuali.ole.batch.document.OLEBatchProcessDefinitionDocument' super(ole_session, url) end |
Instance Method Details
#set_elements ⇒ Object
25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/olels/pages/batch_process.rb', line 25 def set_elements super element(:title) {b.h1.span} element(:name_field) {b.text_field(:id => 'BatchProcessDefinition-batchProcessName_control')} element(:profile_name_field) {b.text_field(:id => 'BatchProcessDefinition-batchProcessProfileName_control')} element(:profile_search_icon) {b.input(:title => 'Search Field')} element(:batch_size_field) {b.text_field(:id => 'chunkSizeField_control')} element(:email_field) {b.text_field(:id => 'emailField_control')} element(:output_format_selector) {b.select_list(:id => 'outputField_control')} element(:output_file_field) {b.text_field(:id => 'outputFileField_control')} element(:run_button) {b.(:id => 'runNowButton')} element(:schedule_button) {b.(:id => 'scheduleButton')} end |
#wait_for_elements ⇒ Object
39 40 41 42 43 44 45 |
# File 'lib/olels/pages/batch_process.rb', line 39 def wait_for_elements super @wait_on << :title @wait_on << :name_field @wait_on << :profile_name_field @wait_on << :run_button end |