Example #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()
Example #2
0
    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()