| | |
| | | }, |
| | | |
| | | "MAQ": { |
| | | "share_url": "http://tai-online.com/exam/testMember/shareAdd?packageId=VG5wbk1BPT0=", |
| | | "share_url": "http://47.114.179.216:8090/exam/testMember/shareAdd?packageId=VGtScmR3PT0=", |
| | | "menu": "测试包管理/测试包列表", |
| | | "add": { |
| | | "company": "TAI测试", |
| | |
| | | current = int(match.group(1)) |
| | | total = int(match.group(2)) |
| | | while current <= total: |
| | | print(f"\n现在是CAQ分片1第{current}题") |
| | | # 获取所有题目 |
| | | questions = self.get_eles(self.elements.questions, 5) |
| | | for question in questions: |
| | |
| | | total = int(match.group(2)) |
| | | |
| | | while current <= total: |
| | | print(f"\n现在是CAQ分片2第{current}题") |
| | | # 获取到所有选项 |
| | | options = self.get_eles(self.elements.options_2, 5) |
| | | number = random.randint(0, 4) |
| | |
| | | |
| | | pre_pictures = self.get_eles(self.elements.pre_picture_btn, 10) |
| | | |
| | | print("VAQ预选图片中...") |
| | | for pre_picture in pre_pictures: |
| | | pre_picture.click() |
| | | self.driver.execute_script("arguments[0].click();", pre_picture) |
| | | time.sleep(0.2) |
| | | |
| | | # 点击下一步 |
| | |
| | | |
| | | time.sleep(1) |
| | | for i in range(0, self.slice_count): |
| | | print(f"当前是VAQ第{i+1}步") |
| | | # 获取当前所需图片数量的文字 |
| | | picture_count_text = self.get_ele(self.elements.current_require_picture_count) |
| | | pictures = self.get_eles(self.elements.picture_btn, 10) |