class OLE_QA::Framework::OLEFS::Building_Lookup
Public Class Methods
new(ole_session)
click to toggle source
Set URL and initialize.
Calls superclass method
OLE_QA::Framework::Page::new
# File lib/olefs/pages/building_lookup.rb, line 19 def initialize(ole_session) # Set @url instance variable from OLE Base URL variable url = ole_session.url + \ 'portal.do?channelTitle=Building&channelUrl=kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.ole.sys.businessobject.Building&docFormKey=88888888&returnLocation='\ + ole_session.url + \ 'portal.do&hideReturnLink=true' super(ole_session, url) end
Public Instance Methods
set_elements()
click to toggle source
Set Building Lookup
screen elements.
Calls superclass method
OLE_QA::Framework::OLEFS::Lookup#set_elements
# File lib/olefs/pages/building_lookup.rb, line 29 def set_elements super element(:campus_code_field) {b.text_field(:id => "campusCode")} element(:building_code_field) {b.text_field(:id => "buildingCode")} element(:building_name_field) {b.text_field(:id => "buildingName")} end
set_functions()
click to toggle source
Calls superclass method
OLE_QA::Framework::OLEFS::Lookup#set_functions
# File lib/olefs/pages/building_lookup.rb, line 36 def set_functions super # The 'return selection' link for a given text value in the search results. function(:return_result) {|which| b.td(:text => which).parent.td(:index => 0).a} # Return the TD containing the given text, if it exists in the search results. function(:text_in_results) {|which| b.td(:text => which)} # Return true or false depending on whether the given text exists in the search results. function(:text_in_results?) {|which| text_in_results(which).present?} end