Module: PopulationEdit

Included in:
CreatePopulation, EditPopulation
Defined in:
lib/sambal-kuali/base_page_classes.rb

Instance Method Summary collapse

Instance Method Details

#child_populationsObject



124
125
126
127
128
# File 'lib/sambal-kuali/base_page_classes.rb', line 124

def child_populations
  names = []
  child_populations_table.divs(class: "uif-field").each { |div| names << div.text }
  names.delete_if { |name| name == "" || name == "delete" || name == "add" }
end

#remove_population(name) ⇒ Object



130
131
132
133
134
135
# File 'lib/sambal-kuali/base_page_classes.rb', line 130

def remove_population(name)
  child_populations_table.row(text: /#{name}/).button(index: 0).click
  loading.wait_while_present
  wait_until { description.enabled? }
  sleep 2 #FIXME - Needed because otherwise the automation causes an application error
end