Ejemplo n.º 1
0
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()
Ejemplo n.º 2
0
def when_i_add_the_cti_profile_1(step, profile_name):
    common.open_url('profile', 'add')
    profile_action_webi.type_profile_names(profile_name)
    form.submit.submit_form()