Class: PerformRollover

Inherits:
BasePage
  • Object
show all
Defined in:
lib/sambal-kuali/pages/perform_rollover.rb

Instance Method Summary collapse

Methods inherited from BasePage

frame_element, green_search_buttons, validation_elements, wrapper_elements

Instance Method Details

#select_terms(m_target_term, m_source_term) ⇒ Object

looks for next available target term in the one specified is used - returns actual target term code used



40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# File 'lib/sambal-kuali/pages/perform_rollover.rb', line 40

def select_terms(m_target_term,m_source_term)
  actual_target_term = m_target_term
  select_target_term(actual_target_term)
  source_term.set m_source_term
  retry_ctr = 0

  while source_term_go_element.disabled? and retry_ctr < 30
    actual_target_term = increment_term_code_year(target_term.value)
    select_target_term(actual_target_term)
    retry_ctr = retry_ctr + 1
  end

  source_term_go
  loading.wait_while_present
  actual_target_term
end