예제 #1
0
    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()
예제 #2
0
    def kaozhan_quanzhong(self):
        KaozhanInfo.click_nextbutton(self)
        KaozhanInfo.click_finishbutton(self)
        KaozhanInfo.click_quanzhong(self)
        KaozhanInfo.send_keys_quanzhong(self, '100')
        KaozhanInfo.click_save(self)

        # 点击保存考核按钮
        KaozhanInfo.click_savekaohe(self)