Class: ManageRegistrationGroups

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

Instance Method Summary collapse

Methods inherited from BasePage

frame_element, green_search_buttons, validation_elements, wrapper_elements

Instance Method Details

#cluster_list_item_div_id(private_name) ⇒ Object

end create cluster dialog



40
41
42
43
# File 'lib/sambal-kuali/pages/manage_registration_groups.rb', line 40

def cluster_list_item_div_id(private_name)
  img_id = cluster_list_div.span(text: /#{Regexp.escape("(#{private_name})")}/).image().id
  img_id[0..-5]    #eg changes  u532_line0_exp to u532_line0
end

#cluster_list_row_generate_reg_groups(private_name) ⇒ Object



50
51
52
53
# File 'lib/sambal-kuali/pages/manage_registration_groups.rb', line 50

def cluster_list_row_generate_reg_groups(private_name)
  div_id = cluster_list_item_div_id(private_name)
  cluster_list_div.div(id: "#{div_id}").link(text: "Generate Registration Groups").click
end

#cluster_list_row_name_text(private_name) ⇒ Object



45
46
47
48
# File 'lib/sambal-kuali/pages/manage_registration_groups.rb', line 45

def cluster_list_row_name_text(private_name)
 div_id = cluster_list_item_div_id(private_name)
 cluster_list_div.div(id: "#{div_id}").span().text()
end

#cluster_list_row_remove_cluster(private_name) ⇒ Object



60
61
62
63
# File 'lib/sambal-kuali/pages/manage_registration_groups.rb', line 60

def cluster_list_row_remove_cluster(private_name)
  div_id = cluster_list_item_div_id(private_name)
  cluster_list_div.div(id: "#{div_id}").link(text: "Remove Cluster").click
end

#cluster_list_row_rename_cluster(private_name) ⇒ Object



55
56
57
58
# File 'lib/sambal-kuali/pages/manage_registration_groups.rb', line 55

def cluster_list_row_rename_cluster(private_name)
  div_id = cluster_list_item_div_id(private_name)
  cluster_list_div.div(id: "#{div_id}").link(text: "Rename Cluster").click
end

#select_ao_row(ao_code) ⇒ Object



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

def select_ao_row(ao_code)
  target_ao_row(ao_code).cells[0].checkbox().set
end

#target_ao_row(ao_code) ⇒ Object



13
14
15
# File 'lib/sambal-kuali/pages/manage_registration_groups.rb', line 13

def target_ao_row(ao_code)
  ao_table.row(text: /\b#{ao_code}\b/)
end