def setUp(cls): """启动应用""" cls.home = HomePage() cls.login_page = LoginPage() cls.master_page = MasterPage() cls.login = Loginpage() cls.statement_page = Statement() cls.public = Get_Cash()
def setUp(cls): """启动应用""" cls.home = HomePage() cls.master_page = MasterPage() cls.year_page = Year_page() cls.statement_page = Statement() cls.public = Get_Cash() cls.offer = Offer_single()
def setUp(cls): """启动应用""" cls.home = HomePage() cls.login_page = LoginPage() cls.master_page = MasterPage() cls.public = Get_Cash() cls.my_account = MyAccountPage() cls.creat_school = CreatSchoolPage()
def __init__(self): """启动应用""" self.home = HomePage() self.login_page = LoginPage() self.master_page = MasterPage() self.login = Loginpage() self.statement_page = Statement() self.offer_page = Offer_single() self.my_account = MyAccountPage()
def setUp(cls): """启动应用""" cls.home = HomePage() cls.login_page = LoginPage() cls.master_page = MasterPage() cls.statement_page = Statement() cls.creat_school = CreatSchoolPage() cls.public = Get_Cash() cls.manager = OprWeb()
def setUp(cls): """启动应用""" cls.index = IndexPage() cls.home = HomePage() cls.login_page = LoginPage() cls.master_page = MasterPage() cls.login = Loginpage() cls.statement_page = Statement() cls.homeworkstatistics = HomeWorkStatistics() cls.public = Get_Cash()
def weixin_app_status(self): """判断应用当前状态""" time.sleep(2) if '我' == HomePage().my_self_text(): print('登录成功') elif '密码' == Login_page().password(): print("进入判断") Login_page().click_more() Login_page().click_more_account() self.weixin_login() else: self.close_app_operate() self.launch_app_operate() if self.wait_check_page(): self.login() else: print('已登录')
def __init__(self): self.home = HomePage() self.toast = Toast()