def given_there_is_a_profile_1_with_no_services_and_xlets(step, profile_name): profile_action_webi.delete_profile_if_exists(profile_name) common.open_url('profile', 'add') profile_action_webi.type_profile_names(profile_name) profile_action_webi.remove_all_services() common.go_to_tab('Xlets') cti_profile_config = step.hashes for cti_profile_element in cti_profile_config: xlet_name = cti_profile_element['xlet'] xlet_position = cti_profile_element.get('position', 'dock') profile_action_webi.add_xlet(xlet_name, xlet_position) form.submit.submit_form()
def when_i_add_xlet_to_profile(step, xlet_name, profile_name): common.open_url('profile', 'list') common.edit_line(profile_name) common.go_to_tab('Xlets') profile_action_webi.add_xlet(xlet_name) form.submit.submit_form()