def get_link_Contract_Center(self): """ 合约中心 :return: """ # 获取XML中相关信息 bys_points, values_points = self.childConfigXML("合约中心", "合约中心") mptree = MPTree(self.driver) try: BasePage(self.driver).move_to_ele(bys_points, values_points) mptree.Contract_Center(bys_points, values_points) mpdriver = mptree.base.get_driver() return mpdriver except Exception: img_path = self.childConfigImgPath() mptree.base.save_img(img_path, str(int(TestDateTime().time_stamp()))) print(traceback.format_exc())
def get_link_Group_award_settlement(self): """ 团奖结算 :return: """ # 获取XML中相关信息 bys_points, values_points = self.childConfigXML("财务结算", "团奖结算") mptree = MPTree(self.driver) try: BasePage(self.driver).move_to_ele(bys_points, values_points) mptree.Group_award_settlement(bys_points, values_points) mpdriver = mptree.base.get_driver() return mpdriver except Exception: img_path = self.childConfigImgPath() mptree.base.save_img(img_path, str(int(TestDateTime().time_stamp()))) print(traceback.format_exc())