Exemplo n.º 1
0
 def del_user(self, group_name, user_name):
     """
     删除指定用户组下面的指定用户
     :param group_name: 用户组名称
     :param user_name: 用户名称
     :return: None
     """
     user_manager_window = api.level_2_window(self.browser)
     self.find_user(group_name, user_name).click()
     self.menu_page.del_user_button(user_manager_window).click()
     level_3_window = api.level_3_window(self.browser)
     api.level_window_button(level_3_window, '确定').click()
Exemplo n.º 2
0
 def del_all_tag(self, window_index=0):
     """
     全选标记进行删除
     :param window_index: 语谱图窗口序号,从0开始
     :return: None
     """
     view_window = self.view_page.view_window(window_index)
     # 点击【全选】按钮
     self.view_page.tag_check_box(view_window)[0].click()
     self.view_page.tag_operate_button(view_window, '批量删除').click()
     time.sleep(0.5)
     warning_window = api.level_2_window(self.browser)
     api.level_window_button(warning_window, '确定').click()
     time.sleep(0.5)
Exemplo n.º 3
0
 def export_case_accept_record(self, case_name, file_path, window_name):
     """"""
     self.case_context_menu_operate(case_name, button_name='导出案件受理记录')
     self.click_material_drop_down_box()
     time.sleep(0.5)
     self.choose_folder([case_name, '检材'])
     time.sleep(0.5)
     self.click_sample_drop_down_box()
     time.sleep(0.5)
     self.choose_folder([case_name, '样本'])
     time.sleep(0.5)
     level_2_window = api.level_2_window(self.browser)
     api.level_window_button(level_2_window, '确认').click()
     api.export_file(file_path, window_name)
Exemplo n.º 4
0
 def add_file(self, window_index: int, sampling_rate='16K'):
     """
     新建文件
     :param window_index: 视图窗口序号
     :param sampling_rate: 采样率(只能是8K/16K/32K)
     :return: None
     """
     view_window = self.view_page.view_window(window_index)
     # 点击【新建文件】按钮
     self.view_page.add_file_button(view_window, button_index=0).click()
     choose_sampling_rate_window = api.level_2_window(self.browser)
     # 选择采样率
     self.view_page.sampling_rate_radio_button(choose_sampling_rate_window,
                                               sampling_rate).click()
     time.sleep(0.5)
     api.level_window_button(choose_sampling_rate_window,
                             button_name='确定').click()
Exemplo n.º 5
0
 def click_confirm_button(self):
     """"""
     prompt_window = api.level_3_window(self.browser)
     api.level_window_button(prompt_window, '确定').click()