Class: OLE_QA::Framework::OLEFS::Processing_Line

Inherits:
Subline_Object show all
Defined in:
lib/olefs/subobjects/processing_line.rb

Overview

A Special Processing Instructions Line in an OLE Financial System Receiving Document.

Instance Attribute Summary

Attributes inherited from Subline_Object

#parent_line

Attributes inherited from Line_Object

#line_number, #sublines

Attributes inherited from Common_Object

#elements, #functions, #ole

Instance Method Summary collapse

Methods inherited from Subline_Object

#initialize

Methods inherited from Line_Object

#initialize, #line_id, #set_subline

Methods inherited from Common_Object

#initialize, #set_functions

Methods included from Helpers

#browser, #load_yml, #set_element, #set_function

Constructor Details

This class inherits a constructor from OLE_QA::Framework::Subline_Object

Instance Method Details

#set_elementsObject



18
19
20
21
22
# File 'lib/olefs/subobjects/processing_line.rb', line 18

def set_elements
  super
  element(:note_field)                {b.td(:xpath => "//table[@summary='Items Section']/tbody/tr[td[1]/b[contains(text(),'#{@parent_line.line_number}')]]/following-sibling::tr[4]/td[1]/table/tbody/tr[2]/td[1]/table/tbody/tr[td[contains(text(),'Note #{@line_number}')]]/following-sibling::tr[1]/td[1]")}
  element(:acknowledge_checkbox)      {b.checkbox(:xpath => "//table[@summary='Items Section']/tbody/tr[td[1]/b[contains(text(),'#{@parent_line.line_number}')]]/following-sibling::tr[4]/td[1]/table/tbody/tr[2]/td[1]/table/tbody/tr[td[contains(text(),'Note #{@line_number}')]]/following-sibling::tr[1]/td[2]")}
end