| | |
| | | opt.click() |
| | | break |
| | | |
| | | def select_code_checkbox(self, check_text, uncheck_text): |
| | | """ |
| | | 选择人口学编码 |
| | | :param uncheck_text: 取消选中的选框文本,以 , 分割 |
| | | :param check_text: 选择的选框文本,以 , 分割 |
| | | :return: |
| | | """ |
| | | # 获取所有人口选编码选框元素 |
| | | code_boxs = self.get_elements_wait(PackageList.add_code_checkbox) |
| | | |
| | | # 将check_text分割 |
| | | code_check_texts = check_text.split(',') |
| | | for code_text in code_check_texts: |
| | | for code_box in code_boxs: |
| | | if code_text == code_box.text: |
| | | code_box.click() |
| | | |
| | | # 将check_text分割 |
| | | code_uncheck_texts = uncheck_text.split(',') |
| | | for code_text in code_uncheck_texts: |
| | | for code_box in code_boxs: |
| | | if code_text == code_box.text: |
| | | code_box.click() |
| | | |
| | | |
| | | |
| | | def add_confirm(self): |
| | | """ |
| | | 点击确认按钮 |