class OLE_QA::Framework::OLELS::Describe_Workbench

The OLE Library System Describe Workbench screen (implemented in 1.5.0-M2-r18095, 2014-03-20)

Public Class Methods

new(ole_session) click to toggle source
Calls superclass method OLE_QA::Framework::Page::new
# File lib/olels/pages/describe_workbench.rb, line 18
def initialize(ole_session)
  url = ole_session.url + 'portal.do?channelTitle=Describe%20Workbench&channelUrl='
  url += ole_session.url + 'ole-kr-krad/olesearchcontroller?viewId=OLESearchView&methodToCall=start'
  super(ole_session,url)
end

Public Instance Methods

set_elements() click to toggle source
# File lib/olels/pages/describe_workbench.rb, line 24
def set_elements
  super
  element(:document_type_selector)                      {b.select_list(:id => 'DocumentAndSearchSelectionType_DocType_control')}
  element(:search_type_selector)                        {b.select_list(:id => 'DocumentAndSearchSelectionType_SearchType_control')}
  element(:search_button)                               {b.button(:id => 'SearchButton')}
  element(:clear_button)                                {b.button(:id => 'ClearButton')}
  element(:new_search_button)                           {b.button(:id => 'StartSearchButton')}
  element(:error_message)                               {b.li(:class => 'uif-errorMessageItem')}
  element(:export_xml_button)                           {b.button(:id => 'exportToXml')}
  element(:next)                                        {b.a(:text => /[Nn]ext/)}
  element(:previous)                                    {b.a(:text => /[Pp]revious/)}
end
set_functions() click to toggle source
Calls superclass method OLE_QA::Framework::Page#set_functions
# File lib/olels/pages/describe_workbench.rb, line 42
def set_functions
  super
  # Check if text is present in results.  (Will not search titles.)
  function(:text_in_results)                            {|which| b.span(:class => 'uif-readOnlyContent', :text => /#{which}/)}
  function(:text_in_results?)                           {|which| text_in_results(which).present?}
  # Check if title is present in results.
  function(:title_in_results)                           {|which| b.a(:class => 'uif-link',:text => /#{which}/)}
  function(:title_in_results?)                          {|which| title_in_results(which).present?}
  # Return the select checkbox for a line in the search results containing the given text.  (Will not work with titles.)
  function(:select_by_text)                             {|which| text_in_results(which).parent.parent.parent.td(:index => 0).div(:class => 'uif-inputField').checkbox(:class => 'uif-checkboxControl')}
  # Return the select checkbox for a line in the search results containing the given text.
  function(:select_by_title)                            {|which| title_in_results(which).parent.parent.parent.td(:index => 0).div(:class => 'uif-inputField').checkbox(:class => 'uif-checkboxControl')}
end
set_lines() click to toggle source
# File lib/olels/pages/describe_workbench.rb, line 56
def set_lines
  set_line(:search_line, OLE_QA::Framework::OLELS::Workbench_Line)
end
wait_for_elements() click to toggle source
# File lib/olels/pages/describe_workbench.rb, line 37
def wait_for_elements
  super
  @wait_on << :document_type_selector << :search_button
end