def kaozhan_quanzhong(self): KaozhanInfo.click_quanzhong(self) KaozhanInfo.send_keys_quanzhong(self, '100') KaozhanInfo.click_save(self) # 点击保存考核按钮 KaozhanInfo.click_savekaohe(self)
def kaozhan_three(self): KaozhanInfo.click_nextbutton1(self) KaozhanInfo.click_teacherbutton(self) KaozhanInfo.click_teacherfiles(self) KaozhanInfo.click_choseteacher(self) KaozhanInfo.click_rightbutton(self) KaozhanInfo.click_submitbutton(self) KaozhanInfo.click_pingfen(self) KaozhanInfo.click_pf_quren(self) if KaozhanInfo.get_elements_teacher(self) is not None: self.kaozhan_quanzhong() else: nametext = GetCankaorenyuanInfo.get_textrenyuan(self) print("未获取到正确的页面断言文字: " + nametext) XinJianKaoHe.get_windows_img(self) self.driver.quit()
def kaozhan_two(self): KaozhanInfo.click_onenext(self) KaozhanInfo.send_keys_kaohename(self, '考核1') KaozhanInfo.click_bingli(self) KaozhanInfo.click_choosebingli(self) KaozhanInfo.click_bingliqueding(self) if KaozhanInfo.get_elements_bingli(self) is not None: print("考核内容已填写") self.kaozhan_three() else: nametext = GetCankaorenyuanInfo.get_textrenyuan(self) print("未获取到正确的页面断言文字: " + nametext) XinJianKaoHe.get_windows_img(self) self.driver.quit()
def kaozhan(self): # 点击考站 KaozhanInfo.click_kazhan(self) KaozhanInfo.send_keys_name(self, '考站1') KaozhanInfo.click_chouti_type(self, 1) KaozhanInfo.click_room(self) KaozhanInfo.click_nullroom(self, '1') KaozhanInfo.click_queding(self) if KaozhanInfo.get_elements_name(self) is not None: print("考站基本信息已填写") self.kaozhan_two() else: nametext = GetCankaorenyuanInfo.get_textrenyuan(self) print("未获取到正确的页面断言文字: " + nametext) XinJianKaoHe.get_windows_img(self) self.driver.quit()
def kaozhan2(self): KaozhanInfo.click_nextbutton(self) KaozhanInfo.click_finishbutton(self) PingXingKaoZhan.click_px_add(self) PingXingKaoZhan.click_px_kaozhan(self) PingXingKaoZhan.click_px_room(self) KaozhanInfo.click_nullroom(self, '2') KaozhanInfo.click_queding(self) KaozhanInfo.click_onenext(self) KaozhanInfo.click_nextbutton1(self) KaozhanInfo.click_teacherbutton(self) KaozhanInfo.click_teacherfiles(self) KaozhanInfo.click_choseteacher(self) KaozhanInfo.click_rightbutton(self) KaozhanInfo.click_submitbutton(self) KaozhanInfo.click_pingfen(self) KaozhanInfo.click_pf_quren(self) KaozhanInfo.click_nextbutton(self) KaozhanInfo.click_finishbutton(self) if PingXingKaoZhan.get_elements_roomname(self) is not None: self.kaozhan_quanzhong() else: nametext = GetCankaorenyuanInfo.get_textrenyuan(self) print("未获取到正确的页面断言文字: " + nametext) XinJianKaoHe.get_windows_img(self) self.driver.quit()