예제 #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 renyuanInfo(self):
        # 获取参考人员
        GetCankaorenyuanInfo.click_add_button(self)
        if GetCankaorenyuanInfo.get_textrenyuan(self) == "选择人员":
            print("成功跳转至选择人员弹窗")
            # 点击参考人员文件夹
            GetCankaorenyuanInfo.click_files(self)
            # 点击源列表按钮
            GetCankaorenyuanInfo.click_yuanliebiao(self)

            if GetCankaorenyuanInfo.get_element_display(self) is not None:
                print("参考人员存在!")
                # 点击向右移动按钮
                GetCankaorenyuanInfo.click_right_button(self)
                # 点击提交按钮
                GetCankaorenyuanInfo.click_commit_button(self)
                self.kaozhan()

            else:
                nametext = GetCankaorenyuanInfo.get_element_display(self)
                print("未显示参考人员列表: " + nametext)
                XinJianKaoHe.get_windows_img(self)
                self.driver.quit()

        else:
            nametext = GetCankaorenyuanInfo.get_textrenyuan(self)
            print("未获取到正确的页面断言文字: " + nametext)
            XinJianKaoHe.get_windows_img(self)
            self.driver.quit()
예제 #3
0
 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()
예제 #4
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()
예제 #5
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()
예제 #6
0
    def renyuanInfo(self):
        # 获取参考人员
        GetCankaorenyuanInfo.click_add_button(self)
        if GetCankaorenyuanInfo.get_textrenyuan(self) == "选择人员":
            print("pass")
            # 点击参考人员文件夹
            GetCankaorenyuanInfo.click_files(self)
            # 点击源列表按钮
            GetCankaorenyuanInfo.click_yuanliebiao(self)
            # 点击向右移动按钮
            GetCankaorenyuanInfo.click_right_button(self)
            # 点击提交按钮
            GetCankaorenyuanInfo.click_commit_button(self)
            self.kaozhan1()

        else:
            nametext = GetCankaorenyuanInfo.get_textrenyuan(self)
            print("未获取到正确的页面断言文字: " + nametext)
            XinJianKaoHe.get_windows_img(self)
            self.driver.quit()
예제 #7
0
    def jnzx(self):
        # 点击技能中心
        XinJianKaoHe.jineng(self)
        if XinJianKaoHe.get_jnzx(self) == "技能中心":
            print("成功点击技能中心菜单!")
            # 点击技能考核
            XinJianKaoHe.click_tab(self)
            # 点击新建考核按钮
            XinJianKaoHe.click_xjkh(self)
            # 点击规范考核、确定按钮
            XinJianKaoHe.click_guifan(self)
            XinJianKaoHe.click_queding(self)
            self.inputinfo()
            self.renyuanInfo()
            # self.kaozhan()

        else:
            nametext = XinJianKaoHe.get_jnzx(self)
            print("未获取到正确的页面断言文字: " + nametext)
            XinJianKaoHe.get_windows_img(self)
            self.driver.quit()