def definedepend(self, dependid):
     clickandbackdepend.clickandbackdepend(self.activebrowser, dependid)
Beispiel #2
0
        if is_cancel:
            activebrowser.findEleAndClick(
                0, "xpath", jigougunaliaddpage.cancel_button_xpath)
            activebrowser.delayTime(3)
        else:
            activebrowser.findEleAndClick(
                0, "xpath", jigougunaliaddpage.confirm_button_xpath)
            activebrowser.delayTime(3)
            jigouguanlipagefunction.getLastPage(activebrowser)
            activebrowser.checktable(jigouguanlipage.result_table_xpath,
                                     jigoubianma_input_text, 1)
            activebrowser.checktable(jigouguanlipage.result_table_xpath,
                                     jigoumingcheng_input_text, 2)
            activebrowser.checktable(jigouguanlipage.result_table_xpath,
                                     beizhu_input_text, 4)


jigougunaliaddpagefunction = JiGouGunaLiAddPageFunction()

if __name__ == "__main__":
    activebrowser = ActiveBrowser()
    # lpf.loginwithcookies(activebrowser)
    # activebrowser.getUrl(jigouguanlipage.pageurl)
    lpf.login(activebrowser)
    activebrowser.delayTime(10)
    clickandbackdepend.clickandbackdepend(activebrowser, 10)
    timestr = GetTimeStr().getTimeStr()
    jigougunaliaddpagefunction.add_JiGOu(activebrowser, False, timestr,
                                         timestr, timestr)