class OLE_QA::Framework::OLEFS::Lookup
Public Instance Methods
set_elements()
click to toggle source
Set lookup page elements.
Calls superclass method
OLE_QA::Framework::Page#set_elements
# File lib/olefs/common/lookup.rb, line 19 def set_elements super element(:title) {b.h1(:xpath => "//div[@id='headerarea-small']/h1")} element(:active_indicator_yes) {b.radio(:id => "activeYes")} element(:active_indicator_no) {b.radio(:id => "activeNo")} element(:active_indicator_both) {b.radio(:id => "activeBoth")} element(:search_button) {b.input(:title => "search")} element(:clear_button) {b.input(:title => "clear")} element(:cancel_button) {b.input(:title => "cancel")} end
set_functions()
click to toggle source
Set commonly-used lookup page functions.
Calls superclass method
OLE_QA::Framework::Page#set_functions
# File lib/olefs/common/lookup.rb, line 31 def set_functions super # Return a search results row by searching on the text in a given table cell. function(:row_by_td_text) {|which| b.td(:xpath => "//table[@id='row']/descendant::td[contains(text(),'#{which}')]").parent} function(:row_by_text) {|which| b.td(:xpath => "//table[@id='row']/descendant::td[contains(text(),'#{which}')]").parent} end