Ejemplo n.º 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()
Ejemplo n.º 2
0
 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()