def add_call_form_model(call_form_name, variables): common.remove_element_if_exist('sheet', call_form_name, column='Model') common.open_url('sheet', 'add') form.input.set_text_field_with_label('Name :', call_form_name) common.go_to_tab('Sheet') for variable in variables: _add_sheet_variable(variable) form.submit.submit_form()
def given_i_have_a_sheet_model_with_custom_ui(step): sheet = step.hashes.pop() common.remove_element_if_exist('sheet', sheet['name']) common.open_url('sheet', 'add') form.input.set_text_field_with_label('Name :', sheet['name']) common.go_to_tab('Sheet') form.set_text_field_with_id('it-sheetactions-qtui', sheet['path to ui']) cti_helper.add_sheet_field(title='', display_type='form', default_value='', display_value='qtui') form.submit.submit_form()
def given_there_is_no_element(step, search): common.remove_element_if_exist('admin_user', search)
def given_there_is_no_element(step, search): common.remove_element_if_exist('entity', search)
def _remove_directory_config(directory): common.remove_element_if_exist('directory_config', directory['name'])
def remove_group_with_name(group_name): common.remove_element_if_exist('group', group_name) common.wait_until(group_is_no_longer_in_list, group_name, tries=5)
def remove_entry_matching(search): phonebook_search(search) common.remove_element_if_exist("phonebook", search) phonebook_search('')
def given_there_is_no_ldap_filter(step, search): common.remove_element_if_exist('LDAP filter', search)
def given_there_are_no_custom_lines_with_interface_beginning_with_1( step, interface_start): common.remove_element_if_exist('line', interface_start)
def given_there_is_no_cti_profile(step, search): common.remove_element_if_exist('CTI profile', search)
def remove_incall_with_did(incall_did): common.remove_element_if_exist('incall', incall_did)
def given_there_is_no_callfilter(step, search): common.remove_element_if_exist('callfilter', search)
def given_there_is_no_pickup(step, search): common.remove_element_if_exist('pickup', search)
def given_no_config_file_1(step, config_file_name): common.remove_element_if_exist('configfiles', config_file_name)