Class: OrgLookupPopUp

Inherits:
OrganizationBase show all
Defined in:
lib/sambal-kuali/pages/organization_lookup.rb

Instance Method Summary collapse

Methods inherited from OrganizationBase

organization_elements

Methods inherited from BasePage

frame_element, green_search_buttons, validation_elements, wrapper_elements

Instance Method Details

#frmObject



17
18
19
# File 'lib/sambal-kuali/pages/organization_lookup.rb', line 17

def frm
  self.frame(class: "fancybox-iframe") # Persistent ID needed!
end

#return_value(short_name) ⇒ Object



23
24
25
26
27
28
# File 'lib/sambal-kuali/pages/organization_lookup.rb', line 23

def return_value(short_name)
  target_org_row(short_name).wait_until_present
  target_org_row(short_name).link(text: "return value").wait_until_present
  target_org_row(short_name).link(text: "return value").click
  loading.wait_while_present
end

#target_org_row(short_name) ⇒ Object



30
31
32
# File 'lib/sambal-kuali/pages/organization_lookup.rb', line 30

def target_org_row(short_name)
  results_table.row(text: /\b#{Regexp.escape(short_name.to_s)}\b/)
end